Improved solution to current_shortstatehash > next_batch. (59b62b1)

`current_shortstatehash` is now calculated from timeline which is already
upper-bound by the `next_batch` snapshot. Previously `current_shortstatehash`
was truly current and had to be disallowed from exceeding `next_batch` by
ignoring the room during sync until a future pass when these values finally
met that condition.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-08-27 00:41:12 +00:00
1 parent 3e2f2fbffa
commit 3430d4ac86
5 files changed
+46 -53

No files matched your search

+1 -1
View File
@@ -422,7 +422,7 @@ where
(timeline_pdus, limited) = (Vec::new(), true);
} else {
(timeline_pdus, limited) = match load_timeline(
(timeline_pdus, limited, _) = match load_timeline(
services,
sender_user,
room_id,