mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-25 07:19:20 -04:00
Fill out prev_events before calling persist_event
This commit is contained in:
parent
474dcecb11
commit
a03c7f27a8
5 changed files with 57 additions and 83 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue