fix(sync): don't override sliding sync v5 list range start to zero #1445
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1445
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "0xnim/continuwuity:fix/sync-v5-dont-force-zero"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request fixes the sliding sync v5 list range start always being
overwritten to
0, causing the server to process and return rooms from thebeginning of the list regardless of the client's requested range. A client
requesting ranges
[[20, 49]]would receive rooms 0–49 instead of just 20–49.The start is now clamped to the list length instead of being zeroed, matching
the expected MSC4186 behavior.
Fixes: #1444
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Thanks for the contribution!
8b2422493d9cfc024f799cfc024f79f11144d6edf11144d6ed66fba601ee