From 650df6fea8ef323064dbc305724e6ea10d5742be Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 8 Sep 2020 15:00:29 +0200 Subject: [PATCH] forgot await --- src/matrix/room/timeline/persistence/SyncWriter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/persistence/SyncWriter.js b/src/matrix/room/timeline/persistence/SyncWriter.js index d265782f..130b22d1 100644 --- a/src/matrix/room/timeline/persistence/SyncWriter.js +++ b/src/matrix/room/timeline/persistence/SyncWriter.js @@ -219,7 +219,7 @@ export class SyncWriter { } // important this happens before _writeTimeline so // members are available in the transaction - const memberChanges = this._writeStateEvents(roomResponse, trackNewlyJoined, txn); + const memberChanges = await this._writeStateEvents(roomResponse, trackNewlyJoined, txn); const timelineResult = await this._writeTimeline(entries, timeline, currentKey, trackNewlyJoined, txn); currentKey = timelineResult.currentKey; // merge member changes from state and timeline, giving precedence to the latter