-
Notifications
You must be signed in to change notification settings - Fork 260
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: Update SenderData on /keys/query
response
#3849
Conversation
b40fefe
to
d785bb8
Compare
b1e0aca
to
92950d7
Compare
99f672e
to
7929242
Compare
be0b80f
to
c332fa2
Compare
/keys/query
response/keys/query
response
c332fa2
to
09e77a4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3849 +/- ##
==========================================
- Coverage 84.16% 84.15% -0.01%
==========================================
Files 267 267
Lines 28107 28140 +33
==========================================
+ Hits 23656 23681 +25
- Misses 4451 4459 +8 ☔ View full report in Codecov by Sentry. |
3befbec
to
0e295aa
Compare
/keys/query
response/keys/query
response
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.
One conversation to be had about unbounded memory usage; all good otherwise!
crates/matrix-sdk-crypto/src/machine/tests/megolm_sender_data.rs
Outdated
Show resolved
Hide resolved
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.
Great, thanks!
We need write access to this in the integration tests
If the previous session is removed from the list, we should still be able to continue iterating through the *rest* of the list.
This module has a number of useful types (in particular, error types). Rather than addding even more types to the top level module, let's export the `sender_data_finder` module as a whole.
When we receive an `/keys/query` response, look for existing inboundgroupsessions created by updated devices, and see if we can update any of their senderdata settings.
Extend the integration tests for megolm sender data to check that we update existing inbound group sessions when we get a `/keys/query` response.
edfc611
to
dbc852b
Compare
Fixes #3753
Builds on #3806, #3920, #3921