diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-12-16 15:24:03 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-12-16 15:24:03 +0000 |
commit | 3c7857e49b8dcad723d52174aba77c47453c0298 (patch) | |
tree | 96091f56e7fe5c91540a3390baa0eeb0d1e171c6 /synapse/handlers/_base.py | |
parent | Remove annotate_event_with_state as nothing was using it. Update state tests ... (diff) | |
download | synapse-3c7857e49b8dcad723d52174aba77c47453c0298.tar.xz |
clean up coding style a bit
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r-- | synapse/handlers/_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py index af8eb5f0f5..567769253e 100644 --- a/synapse/handlers/_base.py +++ b/synapse/handlers/_base.py @@ -61,8 +61,6 @@ class BaseHandler(object): def _create_new_client_event(self, builder): yield run_on_reactor() - context = EventContext() - latest_ret = yield self.store.get_latest_events_in_room( builder.room_id, ) @@ -78,6 +76,8 @@ class BaseHandler(object): builder.depth = depth state_handler = self.state_handler + + context = EventContext() ret = yield state_handler.annotate_context_with_state( builder, context, |