summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-07-18 10:05:45 +0100
committerErik Johnston <erik@matrix.org>2024-07-18 10:05:45 +0100
commitd8265b223f0ad96a47d4cb9a85d831c404008c6d (patch)
tree69096b2541e87b73b2739bdea4c56fffb19187c8
parentMerge branch 'erikj/ss_incr_sync' into erikj/ss_hacks (diff)
downloadsynapse-d8265b223f0ad96a47d4cb9a85d831c404008c6d.tar.xz
Remove lists
-rw-r--r--synapse/rest/client/sync.py6
-rw-r--r--synapse/types/handlers/__init__.py2
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":