Add missing upper-bounded calls; improve snake-sync windowing.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-26 05:17:25 +00:00
parent 63dfe8f7e3
commit ba51748ad3
2 changed files with 14 additions and 11 deletions

View File

@@ -809,7 +809,8 @@ async fn load_joined_room(
.map(ToOwned::to_owned)
.collect::<Vec<_>>();
let send_notification_counts = last_notification_read.is_none_or(|count| count > since);
let send_notification_counts =
last_notification_read.is_none_or(|last_count| last_count.gt(&since));
let notification_count: OptionFuture<_> = send_notification_counts
.then(|| {