0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 06:21:49 +01:00

Fix bug with assuming wrong type

This commit is contained in:
Erik Johnston 2018-06-25 19:56:02 +01:00
parent ea7a9c0483
commit 7bdc5c8fa3

View file

@ -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: