forked from mystiq/hydrogen-web
await this
This commit is contained in:
parent
561879dc6b
commit
85232497a6
1 changed files with 1 additions and 0 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue