From c56a745f23df17cca2f87f1610059da763c4ea16 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 26 Jul 2024 11:07:07 +0100 Subject: Make it clear we only filter out rooms in incremental sync --- synapse/handlers/sliding_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py index b4ecf87f2e..07545e9496 100644 --- a/synapse/handlers/sliding_sync.py +++ b/synapse/handlers/sliding_sync.py @@ -658,8 +658,8 @@ class SlidingSyncHandler: to_token=to_token, ) - # Filter out empty room results. - if room_sync_result: + # Filter out empty room results during incremental sync + if room_sync_result or not from_token: rooms[room_id] = room_sync_result with start_active_span("sliding_sync.generate_room_entries"): -- cgit 1.4.1