summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-09-07 16:01:50 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-09-07 16:01:50 +0100
commite3d028a5f056753de9ab500cbcb1825086b536db (patch)
treeecceb921959898e791cfdb936101dc72a3e1b9a9
parentwip for speeding up room summaries (diff)
downloadsynapse-e3d028a5f056753de9ab500cbcb1825086b536db.tar.xz
fix state
-rw-r--r--synapse/handlers/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 22684ee40d..4e63d9f767 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -1608,7 +1608,7 @@ class SyncHandler(object):
             sync_config.filter_collection.lazy_load_members() and
             (
                 any(ev.type == EventTypes.Member for ev in batch.events) or
-                (batch.limited and any(ev.type == EventTypes.Member for ev in batch.state)) or
+                (batch.limited and any(ev.type == EventTypes.Member for ev in state)) or
                 since_token is None
             )
         ):