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

fix(sdk): Sliding sync rooms aren't restored from the cache #3702

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Jul 16, 2024

This patch fixes a bug where rooms stored in the sliding sync cache aren't restored by the SlidingSyncBuilder.

This patch also improves a test to ensure we don't break this in the future again.

Hywan added 2 commits July 16, 2024 08:08
This patch updates a test to ensure that rooms are restored correctly by
the sliding sync cache.

This test fails :-].
This patch fixes a bug where rooms stored in the sliding sync cache
aren't restored by the `SlidingSyncBuilder`.

This patch also removes `SlidingSyncBuilder::rooms` fields which was
used but never modified. It's dead code.
@Hywan Hywan requested a review from a team as a code owner July 16, 2024 06:14
@Hywan Hywan requested review from andybalaam and removed request for a team July 16, 2024 06:14
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

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

Project coverage is 84.37%. Comparing base (03e1fd7) to head (8c3833e).
Report is 13 commits behind head on main.

Files Patch % Lines
crates/matrix-sdk/src/sliding_sync/builder.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3702      +/-   ##
==========================================
- Coverage   84.37%   84.37%   -0.01%     
==========================================
  Files         258      258              
  Lines       26656    26655       -1     
==========================================
- Hits        22492    22490       -2     
- Misses       4164     4165       +1     

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

Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks for the regression test.

@bnjbvr bnjbvr merged commit 62137e5 into matrix-org:main Jul 16, 2024
40 checks passed
@Hywan Hywan mentioned this pull request Aug 14, 2024
32 tasks
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