diff options
author | Erik Johnston <erik@matrix.org> | 2018-07-23 13:00:22 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-07-23 13:17:22 +0100 |
commit | e42510ba635b3e4d83215e4f5634ca51411996e0 (patch) | |
tree | 3869fe60b9f56c0f0d157e936538b2a887e78be9 /synapse/handlers/_base.py | |
parent | Make EventContext lazy load state (diff) | |
download | synapse-e42510ba635b3e4d83215e4f5634ca51411996e0.tar.xz |
Use new getters
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r-- | synapse/handlers/_base.py | 3 |
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( |