Skip to content
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: Storage changes for keeping sender data with InboundGroupSessions #3556

Merged
merged 10 commits into from
Jun 28, 2024

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Jun 14, 2024

Fixes #3542

This changes the shape of InboundGroupSession to allow us to include a SenderData struct. To see how it will be populated, look at #3543

@Hywan
Copy link
Member

Hywan commented Jun 17, 2024

Is it ready for a first review?

@andybalaam
Copy link
Member Author

Is it ready for a first review?

No, just prototyping for now, thanks!

@andybalaam andybalaam force-pushed the andybalaam/sender-data-in-igs branch from 79afe96 to 03dc672 Compare June 18, 2024 13:14
@andybalaam andybalaam changed the title Storage changes for keeping sender data with InboundGroupSessions crypto: Storage changes for keeping sender data with InboundGroupSessions Jun 18, 2024
@andybalaam andybalaam force-pushed the andybalaam/sender-data-in-igs branch 5 times, most recently from cdfa1ad to 73cfc13 Compare June 26, 2024 11:44
@andybalaam andybalaam marked this pull request as ready for review June 26, 2024 11:46
@andybalaam andybalaam requested a review from a team as a code owner June 26, 2024 11:46
@andybalaam andybalaam requested review from poljar and removed request for a team June 26, 2024 11:46
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

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

Project coverage is 84.13%. Comparing base (fefdfd2) to head (a39f7a5).
Report is 14 commits behind head on main.

Files Patch % Lines
...atrix-sdk-crypto/src/olm/group_sessions/inbound.rs 83.33% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3556   +/-   ##
=======================================
  Coverage   84.13%   84.13%           
=======================================
  Files         255      256    +1     
  Lines       26345    26366   +21     
=======================================
+ Hits        22165    22184   +19     
- Misses       4180     4182    +2     

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

@poljar poljar merged commit 6464d21 into main Jun 28, 2024
38 checks passed
@poljar poljar deleted the andybalaam/sender-data-in-igs branch June 28, 2024 12:14
andybalaam added a commit that referenced this pull request Jul 16, 2024
Part of #3543.
Builds on top of #3556

Implements the "fast lane" as described in
#3544

This will begin to populate `InboundGroupSession`s with the new
`SenderData` struct introduced in
#3556 but it will only
do it when the information is already available in the store. Future PRs
for this issue will query Matrix APIs using spawned async tasks.

Future issues will do retries and migration of old sessions.

---------

Signed-off-by: Andy Balaam <[email protected]>
Co-authored-by: Damir Jelić <[email protected]>
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.

Sender Data: Support sender data in InboundGroupSession and InboundGroupSessionPickle
3 participants