summary refs log tree commit diff
path: root/synapse/handlers/_base.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-08-27 13:34:28 +0100
committerMark Haines <mark.haines@matrix.org>2014-08-27 14:32:19 +0100
commita03c7f27a8104d0e32642cb96faf24608dc2e27b (patch)
tree66e50f91396082e58643e32194fe0322735dcb92 /synapse/handlers/_base.py
parentRemove unused populate_previous_pdus (diff)
downloadsynapse-a03c7f27a8104d0e32642cb96faf24608dc2e27b.tar.xz
Fill out prev_events before calling persist_event
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r--synapse/handlers/_base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index 00da47bb5d..78df9ac53e 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -32,6 +32,8 @@ class BaseRoomHandler(BaseHandler):
 
     @defer.inlineCallbacks
     def _on_new_room_event(self, event, snapshot, extra_destinations=[]):
+        snapshot.fill_out_prev_events(event)
+
         store_id = yield self.store.persist_event(event)
 
         destinations = set(extra_destinations)