Skip to content

crypto: prep work for sharing room key history bundles #4903

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 4 commits into from
Apr 9, 2025

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Apr 8, 2025

A set of non-functional changes in matrix-sdk-crypto which may not make a whole lot of sense on their own, but are enablers for the actual sharing of room key history bundles (#4864). I decided to separate the refactoring work from the functional changes for easeier review.

richvdh added 4 commits April 8, 2025 12:18
For cases where we don't have a whole `EncryptionSettings`, we need
a finer-grained method.
Reduce the size of the tuple that this thing returns by defining a new result
type.

I haven't put the `share_infos` in the struct, because I'm going to reuse the
same struct for another method where `share_infos` aren't needed.
We want to re-use all this logic, so putting it in a separate type will
help. Plus I think it's cleaner.
This is only used to indicate missing sessions, and the `code` is no longer
used, so let's rename the variant and remove the redundant field.
@richvdh richvdh force-pushed the rav/history_sharing/upload_bundle_prep branch from 374a2e7 to dc3bd69 Compare April 8, 2025 11:47
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

Attention: Patch coverage is 89.28571% with 6 lines in your changes missing coverage. Please review.

Project coverage is 85.71%. Comparing base (3ece8e6) to head (dc3bd69).
Report is 27 commits behind head on main.

Files with missing lines Patch % Lines
...c/session_manager/group_sessions/share_strategy.rs 81.81% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4903      +/-   ##
==========================================
+ Coverage   85.69%   85.71%   +0.02%     
==========================================
  Files         309      309              
  Lines       35398    35415      +17     
==========================================
+ Hits        30333    30356      +23     
+ Misses       5065     5059       -6     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@richvdh richvdh marked this pull request as ready for review April 8, 2025 12:17
@richvdh richvdh requested review from a team as code owners April 8, 2025 12:17
@richvdh richvdh requested review from poljar and removed request for a team April 8, 2025 12:17
Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

You're right that some of this makes little sense, though I'm going to trust you that this is just a clever setup in a mysterious book you're writing.

@richvdh richvdh merged commit 35e13b8 into main Apr 9, 2025
80 checks passed
@richvdh richvdh deleted the rav/history_sharing/upload_bundle_prep branch April 9, 2025 09:40
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