From 85232497a6077e8848e41c04c097ef86a97653c7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 30 Sep 2020 14:37:11 +0200 Subject: [PATCH] await this --- src/matrix/Sync.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 2edc91f2..9b7b732e 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -233,6 +233,7 @@ export class Sync { await Promise.all(roomStates.map(async rs => { rs.preparation = await rs.room.prepareSync(rs.roomResponse, rs.membership, prepareTxn); })); + await prepareTxn.complete(); await Promise.all(roomStates.map(rs => rs.room.afterPrepareSync(rs.preparation))); }