-
-
Notifications
You must be signed in to change notification settings - Fork 589
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 for .ready verification event (MSC2366) & other things #1140
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
882d3a7
support .ready event in VerificationRequest
bwindels 2da7253
return request instead of verifier from verification methods
bwindels 10e2947
waitForVerifier is unused now, make it more broadly useful with callback
bwindels 28e46a8
expose common phases as properties
bwindels 4c6dd56
filter verification methods from argument
bwindels cd7cc1b
set verification request on event
bwindels b34a2c7
WIP
bwindels c4142d9
store in-room verification requests by roomId, txnId
bwindels 5f9e822
more ready and remote echo support
bwindels dac4a54
make this a public prop
bwindels 984b623
don't block remote echos to VerificationRequests
bwindels 29c04b6
only move to PHASE_DONE when both .done events are received
bwindels efe2488
get other user id from channel
bwindels 48977e6
get other party user id by inspecting initial event sender/to fields
bwindels 883b83f
move blocking non-participating users back to InRoomChannel
bwindels e7bcb61
attempt at only creating verifier for live events
bwindels cf42ad8
WIP historical
bwindels 0d3d27a
fixes and cleanup for historical
bwindels 57135a8
don't mark events loaded from cache as live events
bwindels 8ed51c8
don't cancel or timeout when verify isn't called
bwindels 3ec8233
fixes & implement timeout
bwindels 423c8a8
use isRemoteEcho to determine if the event is theirs or not
bwindels 3a9dc37
new state machine relies on having remote echos, so fake for to_device
bwindels 213bb9d
allow to move straight from UNSENT to STARTED
bwindels 5919874
check !unsent instead of requested for emitting the crypto.request event
bwindels 75fc25f
fix method names
bwindels 9338d9c
commit logging
bwindels f44e0a8
parenthesis in wrong place broke logic
bwindels 72fd1e4
add note to fix bug later
bwindels 1205178
Merge branch 'develop' into bwindels/verification-right-panel
turt2live 07cc93c
fix lint
bwindels 59bfc45
use setTimeout of setInterval
bwindels cbe2965
mention reason in cancellation error
bwindels e51ba79
to make this work while using fake timers, don't use setTimeout
bwindels c34ccc9
adjust test: requestVerification returns the request instead of verifier
bwindels e895283
enable fake timers for consistency
bwindels 77d0a76
fixup: another timeout
bwindels c12a3b6
more fixup: make sure remote echo doesn't arrive earlier for TestClient
bwindels 121e9d0
don't overwrite a request when the remote echo arrives before event_id
bwindels e5c65d5
set transaction_id for remote echos in TestClient
bwindels bd9a2c1
implement API change in sas test for requestVerificationDM
bwindels aac6829
remove obsolete comment
bwindels d526229
update jsdoc of requestVerificationDM
bwindels 9d6f873
remove obsolete and now broken method
bwindels File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Usually we don't change the contract of our public functions, though in this case we're about to do a major version bump for the new build system anyways so this seems fine and convenient.
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.
Indeed, see the breaking change comment in the description.