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

chore(cargo): Update ruma #4039

Merged
merged 2 commits into from
Oct 7, 2024
Merged

chore(cargo): Update ruma #4039

merged 2 commits into from
Oct 7, 2024

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Sep 27, 2024

@Hywan Hywan requested a review from a team as a code owner September 27, 2024 06:22
@Hywan Hywan requested review from andybalaam and removed request for a team September 27, 2024 06:22
@Hywan Hywan force-pushed the chore-update-ruma branch 3 times, most recently from 8ea2fa7 to 2f807ee Compare September 27, 2024 07:53
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.

What the fuck are you doing on a Friday here. 😾

@Hywan
Copy link
Member Author

Hywan commented Sep 27, 2024

Haha, eh, just a little something while getting bored.

@Hywan Hywan force-pushed the chore-update-ruma branch 3 times, most recently from dfd8d46 to 95ea8e8 Compare October 7, 2024 13:47
This patch changes the behaviour of `timeline_limit` in sliding sync
requests. It previously was sticky, but since it's now mandatory
with MSC4186, it's preferable it to be non-sticky, otherwise in
some scenarios it might default to 0 (its default value). How?
If the server doesn't reply with our `txn_id` (because it doesn't
support sticky parameters or because it misses a `txn_id`), the
next request will be built with a default `timeline_limit` value,
which is zero, and won't get updated to the `timeline_limit` value
from `SlidingSyncListStickyParameters`. This is not good. Instead,
we must consider `timeline_limit` as non-sticky, and moves it from
`SlidingSyncListStickyParameters` to `SlidingSyncListInner`. This is
what this patch does.
@Hywan Hywan enabled auto-merge (rebase) October 7, 2024 14:15
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.67%. Comparing base (4cbc162) to head (9807357).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4039      +/-   ##
==========================================
+ Coverage   84.66%   84.67%   +0.01%     
==========================================
  Files         269      269              
  Lines       28715    28711       -4     
==========================================
  Hits        24311    24311              
+ Misses       4404     4400       -4     

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

@Hywan Hywan merged commit 4d45b02 into matrix-org:main Oct 7, 2024
41 checks passed
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