summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-07-28 17:51:49 +0100
committerErik Johnston <erik@matrix.org>2024-07-28 17:51:49 +0100
commitfbcd2112ee7a423ae8457a58bddaddeb1d07fef3 (patch)
treedf7ea7311e8769dc088fd9c4a859182e500fb825 /synapse
parentUpdates (diff)
downloadsynapse-fbcd2112ee7a423ae8457a58bddaddeb1d07fef3.tar.xz
fixup
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/sliding_sync.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py
index f58b4faf4a..f3f7cb8e7a 100644
--- a/synapse/handlers/sliding_sync.py
+++ b/synapse/handlers/sliding_sync.py
@@ -628,7 +628,10 @@ class SlidingSyncHandler:
         # Filter out rooms that haven't received updates and we've sent down
         # previously.
         if from_token:
-            rooms_should_send = set(sync_config.room_subscriptions.keys())
+            rooms_should_send = set()
+            if sync_config.room_subscriptions:
+                rooms_should_send.update(sync_config.room_subscriptions.keys())
+
             for room_id in relevant_room_map:
                 status = await self.connection_store.have_sent_room(
                     sync_config,