From b9facafea0c5a8666c7ceac3b5b57927f2670b99 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 26 Jul 2024 10:50:26 +0100 Subject: Review comments --- synapse/handlers/sliding_sync.py | 4 +++- tests/rest/client/test_sync.py | 7 +------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py index 306c4286e7..b4ecf87f2e 100644 --- a/synapse/handlers/sliding_sync.py +++ b/synapse/handlers/sliding_sync.py @@ -639,7 +639,9 @@ class SlidingSyncHandler: ) rooms_should_send.update(rooms_that_have_updates) relevant_room_map = { - r: c for r, c in relevant_room_map.items() if r in rooms_should_send + room_id: room_sync_config + for room_id, room_sync_config in relevant_room_map.items() + if room_id in rooms_should_send } @trace diff --git a/tests/rest/client/test_sync.py b/tests/rest/client/test_sync.py index 7f3d5907cf..fc170ebd4e 100644 --- a/tests/rest/client/test_sync.py +++ b/tests/rest/client/test_sync.py @@ -4754,12 +4754,7 @@ class SlidingSyncTestCase(SlidingSyncBase): "lists": { "foo-list": { "ranges": [[0, 1]], - "required_state": [ - [EventTypes.Create, ""], - [EventTypes.RoomHistoryVisibility, ""], - # This one doesn't exist in the room - [EventTypes.Tombstone, ""], - ], + "required_state": [], "timeline_limit": 0, } } -- cgit 1.4.1