diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 2db9ad54..ff41f9c1 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -235,6 +235,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))); }