await this

This commit is contained in:
Bruno Windels 2020-09-30 14:37:11 +02:00
parent 561879dc6b
commit 85232497a6

View File

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