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))); }