-
Notifications
You must be signed in to change notification settings - Fork 302
Fix error when attempting to verify with recovery key with missing backup key #5314
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
Conversation
Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
|
I'm guessing that the CI failure is because it needs to be updated to the latest Rust SDK. This PR needs at least matrix-org/matrix-rust-sdk@57d21cc But when I update to the latest Anyways, I think this PR is ready to 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.
Thanks!
I have removed your code that was already present on develop
and was added to fix compilation issue.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5314 +/- ##
===========================================
- Coverage 81.94% 81.93% -0.02%
===========================================
Files 2371 2371
Lines 67233 67235 +2
Branches 8119 8121 +2
===========================================
- Hits 55095 55089 -6
- Misses 9163 9171 +8
Partials 2975 2975 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I'll fix the error reported by Detekt on develop 🙈 EDIT: c08590a |
Depends on matrix-org/matrix-rust-sdk#5647
Content
Currently, if you verify using a recovery key, but the backup key is corrupt, it will fail, saying that you entered the incorrect recovery key, even if you entered the correct recovery key. This PR ignores errors coming from importing secrets from secret storage, allowing those errors to be handle by the "key storage out of sync" detection.
Motivation and context
Fixes #5099
Tests
Tested devices
Checklist