diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-08-27 13:34:28 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-08-27 14:32:19 +0100 |
commit | a03c7f27a8104d0e32642cb96faf24608dc2e27b (patch) | |
tree | 66e50f91396082e58643e32194fe0322735dcb92 /synapse/handlers/_base.py | |
parent | Remove unused populate_previous_pdus (diff) | |
download | synapse-a03c7f27a8104d0e32642cb96faf24608dc2e27b.tar.xz |
Fill out prev_events before calling persist_event
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r-- | synapse/handlers/_base.py | 2 |
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) |