From d8265b223f0ad96a47d4cb9a85d831c404008c6d Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 18 Jul 2024 10:05:45 +0100 Subject: Remove lists --- synapse/rest/client/sync.py | 6 +++--- synapse/types/handlers/__init__.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/rest/client/sync.py b/synapse/rest/client/sync.py index 7c91b15cef..f639effc64 100644 --- a/synapse/rest/client/sync.py +++ b/synapse/rest/client/sync.py @@ -942,9 +942,9 @@ class SlidingSyncRestServlet(RestServlet): response: JsonDict = defaultdict(dict) response["pos"] = await sliding_sync_result.next_pos.to_string(self.store) - serialized_lists = self.encode_lists(sliding_sync_result.lists) - if serialized_lists: - response["lists"] = serialized_lists + # serialized_lists = self.encode_lists(sliding_sync_result.lists) + # if serialized_lists: + # response["lists"] = serialized_lists response["rooms"] = await self.encode_rooms( requester, sliding_sync_result.rooms ) diff --git a/synapse/types/handlers/__init__.py b/synapse/types/handlers/__init__.py index 0c2ab13c93..a50578ae4b 100644 --- a/synapse/types/handlers/__init__.py +++ b/synapse/types/handlers/__init__.py @@ -329,7 +329,7 @@ class SlidingSyncResult: to tell if the notifier needs to wait for more events when polling for events. """ - return bool(self.lists or self.rooms or self.extensions) + return bool(self.rooms or self.extensions) @staticmethod def empty(next_pos: SlidingSyncStreamToken) -> "SlidingSyncResult": -- cgit 1.4.1