-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
ElementR: report invalid keys rather than failing to restore from backup #4006
ElementR: report invalid keys rather than failing to restore from backup #4006
Conversation
matrix-org/matrix-rust-sdk-crypto-wasm#85 is merged, so this can be reviewed now. |
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.
Presumably this won't actually work until matrix-sdk-crypto-wasm is updated (element-hq/element-web#26900)?
Also, would be nice to see a test.
Wrote a test and found another place where importing could fail. |
src/rust-crypto/backup.ts
Outdated
// since we didn't include the invalid keys when calling | ||
// importBackedUpRoomKeys, we need to add them to the total |
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.
this comment no longer makes sense.
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 other than incorrect comment
matrix-org/matrix-rust-sdk-crypto-wasm#85 adds a parameter to the importBackedUpRoomKeys callback that adds a parameter giving the number of failures. This PR passes that information along.
Checklist
Here's what your changelog entry will look like:
🐛 Bug Fixes