Fill out prev_events before calling persist_event

This commit is contained in:
Mark Haines 2014-08-27 13:34:28 +01:00
parent 474dcecb11
commit a03c7f27a8
5 changed files with 57 additions and 83 deletions

View file

@ -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)