-
Notifications
You must be signed in to change notification settings - Fork 252
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
crypto: Move device_keys to DecryptedOlmV1Event as per MSC4147 #3633
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3633 +/- ##
==========================================
- Coverage 84.26% 84.26% -0.01%
==========================================
Files 259 259
Lines 26596 26595 -1
==========================================
- Hits 22411 22410 -1
Misses 4185 4185 ☔ View full report in Codecov by Sentry. |
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.
Looks good, but now that #3517 has been merged we can add a test confirming that we put things in the right place.
Can I have a hint on how to write a test? I've spent the day trying to call Is there an example I can follow? Thanks |
#3517 added a test which uses the weaker matrix-rust-sdk/crates/matrix-sdk-crypto/src/olm/session.rs Lines 351 to 353 in 2507a45
You could modify this test to also check using our stronger type you modified. |
Thank you, done in 46b4d00 |
Out of interest, do you know why |
Nowadays probably just for historic reasons, we didn't use to have the |
1c5f302
to
25ed92f
Compare
Part of #3542
Fixes a mistake I made in #3556 - I included
device_keys
in thecontent
and it should be outside as per MSC4147