From 77ebe0d02feeb6e4e07d6871903e179257dca7a6 Mon Sep 17 00:00:00 2001 From: Jimmy Brush Date: Sat, 4 Oct 2025 17:22:36 -0400 Subject: [PATCH] fix(!714): Off-by-one in v5 sync Simplified sliding sync specifies ranges to be inclusive while rust ranges are exclusive. --- src/api/client/sync/v5.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/client/sync/v5.rs b/src/api/client/sync/v5.rs index 8bc9ff29..fd2f9ae9 100644 --- a/src/api/client/sync/v5.rs +++ b/src/api/client/sync/v5.rs @@ -320,6 +320,7 @@ where for mut range in ranges { range.0 = uint!(0); + range.1 = range.1.checked_add(uint!(1)).unwrap_or(range.1); range.1 = range .1 .clamp(range.0, UInt::try_from(active_rooms.len()).unwrap_or(UInt::MAX));