From aef031c9d7b98773c89a6acc49132cdb072c3ddb Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 10 Nov 2026 13:28:01 -0500 Subject: [PATCH] fix(sync): Give each sliding sync response its own pos --- src/api/client/sync/v5.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/client/sync/v5.rs b/src/api/client/sync/v5.rs index 4ce7d9c1c..e97319e46 100644 --- a/src/api/client/sync/v5.rs +++ b/src/api/client/sync/v5.rs @@ -211,8 +211,7 @@ async fn collect_sync_response( sticky_delivered: &StickyDelivered, ) -> Result { // Bounds every read below and becomes the `pos` returned to the client. - // Zero would be echoed back as a request for an initial sync. - let next_batch = services.globals.current_count()?.max(1); + let next_batch = services.globals.next_count()?; let all_joined_rooms = services .rooms