summary refs log tree commit diff
path: root/synapse/handlers/_base.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-12-16 15:24:03 +0000
committerMark Haines <mark.haines@matrix.org>2014-12-16 15:24:03 +0000
commit3c7857e49b8dcad723d52174aba77c47453c0298 (patch)
tree96091f56e7fe5c91540a3390baa0eeb0d1e171c6 /synapse/handlers/_base.py
parentRemove annotate_event_with_state as nothing was using it. Update state tests ... (diff)
downloadsynapse-3c7857e49b8dcad723d52174aba77c47453c0298.tar.xz
clean up coding style a bit
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r--synapse/handlers/_base.py4
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,