Skip to content

Conversation

kaylendog
Copy link
Contributor

@kaylendog kaylendog commented Oct 1, 2025

  • Public API changes documented in changelogs (optional)

Signed-off-by: Skye Elliot

@kaylendog kaylendog force-pushed the kaylendog/shared-history/store branch from 8ae8fcf to e635219 Compare October 1, 2025 16:00
@kaylendog kaylendog self-assigned this Oct 1, 2025
Copy link

codspeed-hq bot commented Oct 1, 2025

CodSpeed Performance Report

Merging #5737 will not alter performance

Comparing kaylendog/shared-history/store (741505d) with main (b948232)

Summary

✅ 50 untouched

Copy link

codecov bot commented Oct 1, 2025

Codecov Report

❌ Patch coverage is 86.22449% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.39%. Comparing base (59b7da2) to head (741505d).
⚠️ Report is 73 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk-crypto/src/store/mod.rs 90.30% 14 Missing and 2 partials ⚠️
...x-sdk-crypto/src/types/events/room_key_withheld.rs 50.00% 6 Missing and 2 partials ⚠️
crates/matrix-sdk-crypto/src/machine/mod.rs 50.00% 2 Missing ⚠️
crates/matrix-sdk-sqlite/src/crypto_store.rs 50.00% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

@kaylendog kaylendog marked this pull request as ready for review October 1, 2025 17:15
@kaylendog kaylendog requested review from a team as code owners October 1, 2025 17:15
@kaylendog kaylendog requested review from richvdh and stefanceriu and removed request for a team October 1, 2025 17:15
Copy link
Member

@richvdh richvdh left a 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

@kaylendog kaylendog force-pushed the kaylendog/shared-history/store branch from 24dcbf4 to fd3943c Compare October 2, 2025 14:31
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.
@kaylendog kaylendog requested a review from richvdh October 3, 2025 13:55
- 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`.
@kaylendog kaylendog requested a review from richvdh October 6, 2025 15:28
"room_keys": [
{
"algorithm": "m.megolm.v1.aes-sha2",
"algorithm": "[algorithm]",
Copy link
Contributor Author

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.

Copy link
Member

@richvdh richvdh left a 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

@stefanceriu stefanceriu removed their request for review October 9, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants