diff options
author | Erik Johnston <erik@matrix.org> | 2018-06-25 19:56:02 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-06-25 19:56:02 +0100 |
commit | 7bdc5c8fa37de6256ec2f41a5c683c75ac52f9ff (patch) | |
tree | c67d713f28367621cda19d73197f012675be3a58 | |
parent | Add fast path to _filter_events_for_server (diff) | |
download | synapse-7bdc5c8fa37de6256ec2f41a5c683c75ac52f9ff.tar.xz |
Fix bug with assuming wrong type
-rw-r--r-- | synapse/handlers/federation.py | 4 |
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: |