Skip to content
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

Support MSC2366 (m.key.verification.ready event) #1110

Closed
wants to merge 29 commits into from

Conversation

@bwindels bwindels changed the title Support MSC2366 (m.key.verification.ready event) Support MSC2366 (m.key.verification.ready event) Dec 10, 2019
as MSC2366 adds an extra interactive step to the verification process,
we can't wait for the verifier after sending the request.

This is a breaking change in the js-sdk as it changes the return type
of an existing method.
so we don't need to import the PHASE_ constants where we need to check
as it's harder to determine the other side of a request, given
the in-room code also processes remote echos for own events.
also put logic to block non-participating senders in VerificationRequest
so it is shared between both channels.

Remote echo's should not be passed to the verifier though.
as once in done, the request is removed from the request map
and the second .done event that comes in will not find the request
anymore, so the request wouldn't be attached to the event anymore,
breaking rendering it in the timeline.
next up is inspecting the .request event to
determine it reliably in InRoomChannel
also fail validation with any event not sent by or directed to us
as it doesn't need to happen for ToDeviceChannel
but doesn't work yet? data where liveEvent is fished out is undefined
this makes the verifier want to interact with the other party
when just reloading the session.
rather than the sender and from_device (which is not always set)

as this was one of the things breaking to_device verification
of ones own devices.
this was one of the things breaking to_device verification
@bwindels bwindels closed this Jan 3, 2020
@t3chguy t3chguy deleted the bwindels/verification-ready branch August 11, 2022 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant