summary refs log tree commit diff
diff options
context:
space:
mode:
-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 f639effc64..7c91b15cef 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 a50578ae4b..0c2ab13c93 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.rooms or self.extensions)
+        return bool(self.lists or self.rooms or self.extensions)
 
     @staticmethod
     def empty(next_pos: SlidingSyncStreamToken) -> "SlidingSyncResult":