-
Notifications
You must be signed in to change notification settings - Fork 259
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
Fix error loading older sender data from storage #4425
Conversation
#[serde(alias = "SenderUnverifiedButPreviouslyVerified")] | ||
VerificationViolation(KnownSenderData), |
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.
There are a whole bunch of other renames in #4067 that we need to check for; notably OwnUserIdentityVerifiedState
(https://github.com/matrix-org/matrix-rust-sdk/pull/4067/files#diff-d28a9285dd9fd0d1ced29b1986dc92d7a754bb846a24cab48ec78073a1581166R874) which was the one that caused problems for Valere, but also VerificationLevel
, and there may be others.
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.
Sorry, was rushing to find a fix and missed the other places. Will expand 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.
Added commits dealing with the other cases
This talks about a crash, but we just changed the serialization format, deserialization failures should not result in crashes. So we need to also find where the crash happens and convert that to an error. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4425 +/- ##
=======================================
Coverage 85.39% 85.40%
=======================================
Files 283 283
Lines 31472 31472
=======================================
+ Hits 26877 26880 +3
+ Misses 4595 4592 -3 ☔ View full report in Codecov by Sentry. |
It was a crash, right @BillCarsonFr ? Can you paste the stack trace? |
Yes all crashes https://github.com/element-hq/element-android-rageshakes/issues?q=is%3Aissue+is%3Aopen+VerifiedStateOrBool+
|
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
Alright, but that's EA not catching an exception, right? The SDK itself doesn't crash. |
Correct. I fixed the PR description and will fix the commits in my rebase. |
…l when deserializing
…when deserializing
…iouslyVerifiedButNoLonger value
785504d
to
d17ba70
Compare
Pausing this PR so we can make a release branch to release this for crypto-wasm based on the version used in matrix-rust-sdk-crypto-wasm 11.0 (70bcddf) |
Err, please don't pause it? The WASM bindings are not the only ones affected by this. |
Fixes #4424