-
Notifications
You must be signed in to change notification settings - Fork 333
feat: Append withheld info from room key bundle to store. #5737
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
base: main
Are you sure you want to change the base?
Conversation
8ae8fcf
to
e635219
Compare
CodSpeed Performance ReportMerging #5737 will not alter performanceComparing Summary
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5737 +/- ##
==========================================
- Coverage 88.40% 88.39% -0.02%
==========================================
Files 359 359
Lines 99048 99234 +186
Branches 99048 99234 +186
==========================================
+ Hits 87566 87714 +148
- Misses 7344 7380 +36
- Partials 4138 4140 +2 ☔ 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.
A couple of initial thoughts
24dcbf4
to
fd3943c
Compare
Tests that a to-device `m.room_key.withheld` event can be serialized (using JSON), then deserialized as a RoomKeyWithheldEntry. Ensures compatibility with exisiting store data.
- Adds helper methods on `MegolmV1AesSha2WithheldContent` to access room and session ID. - Splits session import logic to `import_room_key_bundle_sessions`. - Splits withheld info import logic to `import_room_key_bundle_withheld_info`.
"room_keys": [ | ||
{ | ||
"algorithm": "m.megolm.v1.aes-sha2", | ||
"algorithm": "[algorithm]", |
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.
Fixes tests when running with experimental-algorithms
feature enabled.
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.
a few little nits
Signed-off-by: Skye Elliot