summary refs log tree commit diff
path: root/synapse/handlers/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-23 13:00:22 +0100
committerErik Johnston <erik@matrix.org>2018-07-23 13:17:22 +0100
commite42510ba635b3e4d83215e4f5634ca51411996e0 (patch)
tree3869fe60b9f56c0f0d157e936538b2a887e78be9 /synapse/handlers/_base.py
parentMake EventContext lazy load state (diff)
downloadsynapse-e42510ba635b3e4d83215e4f5634ca51411996e0.tar.xz
Use new getters
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r--synapse/handlers/_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index b6a8b3aa3b..704181d2d3 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -112,8 +112,9 @@ class BaseHandler(object):
             guest_access = event.content.get("guest_access", "forbidden")
             if guest_access != "can_join":
                 if context:
+                    current_state_ids = yield context.get_current_state_ids(self.store)
                     current_state = yield self.store.get_events(
-                        list(context.current_state_ids.values())
+                        list(current_state_ids.values())
                     )
                 else:
                     current_state = yield self.state_handler.get_current_state(