-
-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix requestVerificationDM
with chronological pendingEventOrdering
#1943
Conversation
Signed-off-by: Martin Giger <martin@humanoids.be>
Thanks for the PR. I think that this almost works, but not quite. If the event status is |
Based on https://github.com/matrix-org/matrix-js-sdk/blob/develop/src/models/event.ts#L1051 the SDK thinks the ID could still change from the remote echo? Or is that code path irrelevant for events sent by the local session? |
Yeah, it's a bit confusing there. That event only gets emitted only if Unfortunately, it looks like it sets the status to SENT before setting the correct event ID, so you can't just listen for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant to look at this earlier. It looks good to me. I'll ask for review from someone else on the web team to check it over, but I think it should basically be ready.
* Use `ICallFeedOpts` in the `CallFeed` constructor. To construct a new `CallFeed` object you have to pass `ICallFeedOpts` e.g. `const callFeed = new CallFeed({client ([\matrix-org#1964](matrix-org#1964)). Contributed by [SimonBrandner](https://github.com/SimonBrandner). * Make threads use 'm.thread' relation ([\matrix-org#1980](matrix-org#1980)). * Try to answer a call without video if we can't access the camera ([\matrix-org#1972](matrix-org#1972)). Fixes element-hq/element-web#17975 and element-hq/element-web#17975. Contributed by [SimonBrandner](https://github.com/SimonBrandner). * Make `opts` in `importRoomKeys()` optional ([\matrix-org#1974](matrix-org#1974)). Contributed by [SimonBrandner](https://github.com/SimonBrandner). * Enable TypeScript declaration maps ([\matrix-org#1966](matrix-org#1966)). Contributed by [Alexendoo](https://github.com/Alexendoo). * Fix `requestVerificationDM` with chronological `pendingEventOrdering` ([\matrix-org#1943](matrix-org#1943)). Contributed by [freaktechnik](https://github.com/freaktechnik).
Signed-off-by: Martin Giger martin@humanoids.be
This PR is the result of an issue I ran into while implementing user verification for Thunderbird. I'm not sure this is the correct way to handle the chronological timeline case, but it makes sure that the handler won't run with an unsent temporary event ID, and thus assuming the wrong transaction ID.
CC @uhoreg
Here's what your changelog entry will look like:
🐛 Bug Fixes
requestVerificationDM
with chronologicalpendingEventOrdering
(#1943). Contributed by freaktechnik.