summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 123cdb5fab..aab69550a0 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -481,10 +481,10 @@ class FederationHandler(BaseHandler):
         if not visibility_ids:
             defer.returnValue(events)
 
-        events = yield self.store.get_events(visibility_ids)
+        event_map = yield self.store.get_events(visibility_ids)
         all_open = all(
             e.content.get("history_visibility") in (None, "shared", "world_readable")
-            for e in events
+            for e in events.itervalues()
         )
 
         if all_open: