summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-27 18:45:24 +0000
committerErik Johnston <erik@matrix.org>2017-02-27 18:45:24 +0000
commitc0d6045776909a83181a4a925198c58e625ea4a2 (patch)
tree6e674225d9804f848f5899232735b9d16462ac78
parentDon't fetch current state in common case (diff)
downloadsynapse-c0d6045776909a83181a4a925198c58e625ea4a2.tar.xz
It should be all
-rw-r--r--synapse/storage/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index a4ce71cb27..08807deba9 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -316,7 +316,7 @@ class EventsStore(SQLBaseStore):
                                 and len(new_latest_event_ids) == 1
                             )
                             if len_1:
-                                all_single_prev_not_state = any(
+                                all_single_prev_not_state = all(
                                     len(event.prev_events) == 1
                                     and not event.is_state()
                                     for event, ctx in ev_ctx_rm