Use new getters

This commit is contained in:
Erik Johnston 2018-07-23 13:00:22 +01:00
parent 440b8845b5
commit e42510ba63
9 changed files with 59 additions and 31 deletions

View file

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