-
Notifications
You must be signed in to change notification settings - Fork 345
crypto: add new CryptoStore method get_withheld_sessions_by_room_id
#5819
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
Conversation
... in preparation for extracting all withheld sessions for a given room.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5819 +/- ##
==========================================
- Coverage 88.55% 88.54% -0.02%
==========================================
Files 361 361
Lines 101343 101381 +38
Branches 101343 101381 +38
==========================================
+ Hits 89747 89768 +21
- Misses 7392 7408 +16
- Partials 4204 4205 +1 ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #5819 will not alter performanceComparing Summary
|
CryptoStore method get_withheld_sessions_by_room_id
Implement this across all the store implementations
a77a2c7 to
e50f5ff
Compare
integration test for the new method
e50f5ff to
0faf3ee
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.
Looks good.
| CREATE INDEX "direct_withheld_info_room_id_idx" | ||
| ON "direct_withheld_info" ("room_id"); |
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.
Reminder to myself, this will be a merge conflict with #5817.
Add a new method to
CryptoStorewhich allows retrieving all the withheld sessions in a given room.Unfortunately, for indexeddb, that means a data migration, because currently the withheld sessions are indexed by
(session_id, room)rather than(room, session_id).This is groundwork for element-hq/element-meta#2876.