From c0238ecbed8a075fac65944294e294f3453eaf9c Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 2 Sep 2016 14:53:38 +0100 Subject: [PATCH] Explicitly specify state_key for history_visibility fetching --- synapse/notifier.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/notifier.py b/synapse/notifier.py index b86648f5e..48653ae84 100644 --- a/synapse/notifier.py +++ b/synapse/notifier.py @@ -423,7 +423,8 @@ class Notifier(object): def _is_world_readable(self, room_id): state = yield self.state_handler.get_current_state( room_id, - EventTypes.RoomHistoryVisibility + EventTypes.RoomHistoryVisibility, + "", ) if state and "history_visibility" in state.content: defer.returnValue(state.content["history_visibility"] == "world_readable")