diff options
author | Erik Johnston <erik@matrix.org> | 2024-07-18 10:05:45 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2024-07-18 10:05:45 +0100 |
commit | d8265b223f0ad96a47d4cb9a85d831c404008c6d (patch) | |
tree | 69096b2541e87b73b2739bdea4c56fffb19187c8 | |
parent | Merge branch 'erikj/ss_incr_sync' into erikj/ss_hacks (diff) | |
download | synapse-d8265b223f0ad96a47d4cb9a85d831c404008c6d.tar.xz |
Remove lists
-rw-r--r-- | synapse/rest/client/sync.py | 6 | ||||
-rw-r--r-- | 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": |