fix(sync): Give each sliding sync response its own pos

This commit is contained in:
Henry-Hiles authored and Ellis Git committed 2026-11-11 14:28:43 +00:00
1 parent 7b927196a2
commit aef031c9d7
1 file changed
+1 -2
+1 -2
View File
@@ -211,8 +211,7 @@ async fn collect_sync_response(
sticky_delivered: &StickyDelivered,
) -> Result<SyncCollection> {
// 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