diff options
author | Erik Johnston <erikj@jki.re> | 2018-07-23 15:14:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-23 15:14:39 +0100 |
commit | 9c294ea864e630d9accc1009be8817e94d1be4d8 (patch) | |
tree | e53ae887887d0e1aecea4a867714ae57144c1929 /synapse/handlers/_base.py | |
parent | Merge pull request #3577 from matrix-org/erikj/cleanup_context (diff) | |
parent | Update docstrings to make sense (diff) | |
download | synapse-9c294ea864e630d9accc1009be8817e94d1be4d8.tar.xz |
Merge pull request #3579 from matrix-org/erikj/stateless_contexts_4
Add concept of StatelessContext, take 4.
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( |