fix(sync/v2): Room leaves being omitted incorrectly

Partially borrowed from 85a84f93c7
This commit is contained in:
nexy7574 2025-08-30 16:00:46 +01:00
commit 83e3de55a4
No known key found for this signature in database

View file

@ -430,7 +430,7 @@ async fn handle_left_room(
.ok(); .ok();
// Left before last sync // Left before last sync
if Some(since) >= left_count { if (Some(since) >= left_count && !include_leave) || Some(next_batch) < left_count {
return Ok(None); return Ok(None);
} }