summary refs log tree commit diff
path: root/synapse/handlers/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-03 16:06:39 +0100
committerErik Johnston <erik@matrix.org>2015-06-03 16:44:24 +0100
commit55bf90b9e458c6adbbd0e82403f9da06da95a812 (patch)
treed717ebff3d547e2341483b13730b681fe980686d /synapse/handlers/_base.py
parentLog where a request came from in federation (diff)
downloadsynapse-55bf90b9e458c6adbbd0e82403f9da06da95a812.tar.xz
Don't needlessly compute prev_state
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r--synapse/handlers/_base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index 833ff41377..d6c064b398 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -78,7 +78,9 @@ class BaseHandler(object):
         context = yield state_handler.compute_event_context(builder)
 
         if builder.is_state():
-            builder.prev_state = context.prev_state_events
+            builder.prev_state = yield self.store.add_event_hashes(
+                context.prev_state_events
+            )
 
         yield self.auth.add_auth_events(builder, context)