diff options
author | Erik Johnston <erik@matrix.org> | 2024-07-28 17:51:49 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2024-07-28 17:51:49 +0100 |
commit | fbcd2112ee7a423ae8457a58bddaddeb1d07fef3 (patch) | |
tree | df7ea7311e8769dc088fd9c4a859182e500fb825 | |
parent | Updates (diff) | |
download | synapse-fbcd2112ee7a423ae8457a58bddaddeb1d07fef3.tar.xz |
fixup
-rw-r--r-- | synapse/handlers/sliding_sync.py | 5 |
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, |