diff options
author | Erik Johnston <erik@matrix.org> | 2024-07-26 11:07:07 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2024-07-26 11:07:07 +0100 |
commit | c56a745f23df17cca2f87f1610059da763c4ea16 (patch) | |
tree | ae8c07980a21c0550fe8383516f7961c876cb793 | |
parent | Add test that empty room comes down initial sync (diff) | |
download | synapse-c56a745f23df17cca2f87f1610059da763c4ea16.tar.xz |
Make it clear we only filter out rooms in incremental sync
-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"): |