Skip to content

Add a stream that notifies us about received room key bundles #5288

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

Merged
merged 2 commits into from
Jun 26, 2025

Conversation

poljar
Copy link
Contributor

@poljar poljar commented Jun 26, 2025

Part of #4926.

This PR doesn't yet handle room key bundles received out of order. It is rather the building block which will notify us that we need to consider that a bundle might have arrived out of order.

@poljar poljar requested review from a team as code owners June 26, 2025 07:37
@poljar poljar requested review from Hywan and andybalaam and removed request for a team June 26, 2025 07:37
@poljar poljar force-pushed the poljar/shared-history/bundle-stream branch from 03e1e17 to 45d9183 Compare June 26, 2025 07:42
Copy link
Member

@Hywan Hywan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the TODO that I would like to not forget, it's good. Thanks!

use serde::{Deserialize, Serialize};

use super::EventType;

// TODO: We need implement zeroize for this type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to open an issue to track this? It seems rather important isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

codecov bot commented Jun 26, 2025

Codecov Report

Attention: Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.19%. Comparing base (836c643) to head (45d9183).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/encryption/mod.rs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5288   +/-   ##
=======================================
  Coverage   90.19%   90.19%           
=======================================
  Files         334      334           
  Lines      105155   105178   +23     
  Branches   105155   105178   +23     
=======================================
+ Hits        94847    94870   +23     
+ Misses       6245     6244    -1     
- Partials     4063     4064    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@poljar poljar merged commit 3a98d46 into main Jun 26, 2025
44 checks passed
@poljar poljar deleted the poljar/shared-history/bundle-stream branch June 26, 2025 11:22
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.

2 participants