mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 05:00:20 +00:00
Fix bug with assuming wrong type
This commit is contained in:
parent
ea7a9c0483
commit
7bdc5c8fa3
1 changed files with 2 additions and 2 deletions
|
@ -481,10 +481,10 @@ class FederationHandler(BaseHandler):
|
||||||
if not visibility_ids:
|
if not visibility_ids:
|
||||||
defer.returnValue(events)
|
defer.returnValue(events)
|
||||||
|
|
||||||
events = yield self.store.get_events(visibility_ids)
|
event_map = yield self.store.get_events(visibility_ids)
|
||||||
all_open = all(
|
all_open = all(
|
||||||
e.content.get("history_visibility") in (None, "shared", "world_readable")
|
e.content.get("history_visibility") in (None, "shared", "world_readable")
|
||||||
for e in events
|
for e in events.itervalues()
|
||||||
)
|
)
|
||||||
|
|
||||||
if all_open:
|
if all_open:
|
||||||
|
|
Loading…
Reference in a new issue