-
-
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
Implement getting verification cancellation info in Rust crypto #3947
Conversation
Don't know if I need tests for this |
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.
Don't know if I need tests for this
Yes please. (I'm a bit surprised the coverage metrics are happy, but whatever).
There are already some tests in https://github.com/matrix-org/matrix-js-sdk/blob/c24f38fa1783862f361b2ee80e6c6698d7c7091c/spec/integ/crypto/verification.spec.ts which do cancellation. It should be pretty easy to add some calls to these getters to check that they give the right value.
I realized that and if we can get rid of the |
Yes, all this sounds sensible to me. Don't worry about making breaking changes to the wasm bindings. |
wasm PR is at matrix-org/matrix-rust-sdk-crypto-wasm#71 The tests on this PR won't pass until it gets merged, and this PR is updated to use the new code (which I assume means just waiting for a new release of the bindings and then bumping the required version number in |
I merged in develop, which depends on the latest crypto wasm bindings. So the tests now pass. |
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.
lgtm
expect(request.cancellationCode).toEqual("m.user"); | ||
expect(request.cancellingUserId).toEqual("@alice:localhost"); |
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.
I feel like there are quite a lot of codepaths here which we're not testing at all, but I won't insist for now :)
Co-authored-by: Richard van der Hoff <[email protected]>
Fixes element-hq/element-web#26652
Checklist
Here's what your changelog entry will look like:
🐛 Bug Fixes