feat: Download room keys from backup before building key bundle.#6017
feat: Download room keys from backup before building key bundle.#6017
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6017 +/- ##
==========================================
- Coverage 88.94% 88.93% -0.01%
==========================================
Files 357 357
Lines 99178 99198 +20
Branches 99178 99198 +20
==========================================
+ Hits 88210 88223 +13
- Misses 6987 6992 +5
- Partials 3981 3983 +2 ☔ View full report in Codecov by Sentry. |
92a1733 to
1436a75
Compare
Signed-off-by: Skye Elliot <actuallyori@gmail.com>
1436a75 to
afe30c3
Compare
- Splits `test_secret_gossip_after_interactive_verification ` into a helper method. Signed-off-by: Skye Elliot <actuallyori@gmail.com>
afe30c3 to
831ab6d
Compare
andybalaam
left a comment
There was a problem hiding this comment.
Looks great. Couple of tiny comments.
Before we merge I'd like to see how this is rendered in clients. Presumably this download could be really slow so they will need to display a spinner or equivalent.
We do indeed, tested and works! |
…DB. (#6044) While #6017 is mostly functional, there are two issues: - I did not process `changes.room_key_bundles_fully_downloaded` in `matrix-sdk-sqlite`, meaning any updates made via `Changes` would not be persisted; - I used a non-encrypting `JsValue` serialisation for the same field in `matrix-sdk-indexeddb`, which causes errors when passed to the decryption-enabled deserializer. Solutions: - Process the aforementioned changes such that keys are added to SQLite; - Use a non-encrypting deserialiser, since this is effectively a hash-set, and the contents aren't sensitive. Signed-off-by: Skye Elliot <actuallyori@gmail.com>
share_room_historyto fetch all room keys from backup if this has not done before.Signed-off-by: Skye Elliot actuallyori@gmail.com