mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
await operation, otherwise it keeps running during next sync
This commit is contained in:
parent
25c8f1cf04
commit
2582600249
@ -303,7 +303,7 @@ export class Room extends BaseRoom {
|
||||
const shouldFetchUnverifiedSenders = this._isTimelineOpen && decryption?.hasUnverifiedSenders;
|
||||
// only log rooms where we actually do something
|
||||
if (shouldFlushKeys || shouldFetchUnverifiedSenders) {
|
||||
log.wrap({l: "room", id: this.id}, async log => {
|
||||
await log.wrap({l: "room", id: this.id}, async log => {
|
||||
const promises = [];
|
||||
if (shouldFlushKeys) {
|
||||
promises.push(this._roomEncryption.flushPendingRoomKeyShares(this._hsApi, null, log));
|
||||
|
Loading…
Reference in New Issue
Block a user