diff options
-rw-r--r-- | synapse/handlers/sliding_sync.py | 4 |
1 files 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"): |