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

Make sync_token accessor private #1216

Merged
merged 3 commits into from
Nov 18, 2022
Merged

Make sync_token accessor private #1216

merged 3 commits into from
Nov 18, 2022

Conversation

jplatte
Copy link
Collaborator

@jplatte jplatte commented Nov 17, 2022

It's not removed here because that would mean people have to manage it externally for clients that keep non-crypto state across app runs. However, to make use cases with multiple concurrent syncs possible, we could do so in a follow-up and require people to manage the sync token themselves. Many of the examples seem to suggest that it has to be passed manually anyways..

Supersedes #1211.

- matrix_sdk_base::sync::SyncResponse is the internal representation that
  we can update to account for sliding sync
- matrix_sdk::sync::SyncResponse is `/v3/`-specific and should not change
@jplatte jplatte requested a review from poljar November 17, 2022 17:50
@codecov
Copy link

codecov bot commented Nov 17, 2022

Codecov Report

Base: 74.53% // Head: 74.57% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (cf6c85c) compared to base (1f2cdfc).
Patch coverage: 94.11% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1216      +/-   ##
==========================================
+ Coverage   74.53%   74.57%   +0.04%     
==========================================
  Files         112      112              
  Lines       12805    12814       +9     
==========================================
+ Hits         9544     9556      +12     
+ Misses       3261     3258       -3     
Impacted Files Coverage Δ
crates/matrix-sdk-base/src/client.rs 86.48% <0.00%> (ø)
crates/matrix-sdk-base/src/sync.rs 100.00% <ø> (+14.28%) ⬆️
crates/matrix-sdk/src/sliding_sync.rs 0.00% <ø> (ø)
crates/matrix-sdk/src/client/mod.rs 85.92% <100.00%> (+0.03%) ⬆️
crates/matrix-sdk/src/sync.rs 84.61% <100.00%> (+2.00%) ⬆️
crates/matrix-sdk-crypto/src/identities/manager.rs 67.22% <0.00%> (+0.84%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jplatte jplatte merged commit 785a334 into main Nov 18, 2022
@jplatte jplatte deleted the jplatte/next-batch-accessor branch November 18, 2022 13:02
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