-
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: Allow querying InboundGroupSessions using curve key #3806
Conversation
9c80560
to
b08403f
Compare
b08403f
to
bc3fdcf
Compare
adb6b19
to
928157f
Compare
bc3fdcf
to
5d7bf58
Compare
5d7bf58
to
833ff32
Compare
928157f
to
2d9fe4d
Compare
833ff32
to
68dd910
Compare
This comment was marked as resolved.
This comment was marked as resolved.
b40fefe
to
d785bb8
Compare
2d9fe4d
to
d785bb8
Compare
3d9d3fc
to
d785bb8
Compare
d785bb8
to
99f672e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3806 +/- ##
==========================================
- Coverage 84.16% 84.12% -0.05%
==========================================
Files 266 266
Lines 28017 28088 +71
==========================================
+ Hits 23581 23629 +48
- Misses 4436 4459 +23 ☔ View full report in Codecov by Sentry. |
Seems like the coverage data is wrong here. It seems like it's treating the text of the SQL statement at https://app.codecov.io/gh/matrix-org/matrix-rust-sdk/pull/3806/blob/crates/matrix-sdk-sqlite/src/crypto_store.rs#L517 as a coverage miss... but clearly that method is being executed, so the SQL statement must be being used. I wonder if it would help to pull the text out to a separate |
3ff54b7
to
5177e3f
Compare
Add new `session_id`, `sender_key` and `sender_data_type` properties to stored inbound group session objects.
Add an index on `(sender_key, sender_data_type, session_id)`.
Add a new integration test for `CryptoStore::get_inbound_group_sessions_for_device_batch`
0f0df00
to
aa3757f
Compare
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.
@andybalaam I co-wrote this and have co-reviewed it. We're both now happy with the changes.
This PR adds a new method
CryptoStore::get_inbound_group_sessions_for_device_batch
, which is required for us to be able to update the information we hold about inbound group sessions when we get a/keys/query
response (#3753).Strongly suggest reviewing commit-by-commit!
Fixes #3752