mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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;
|
const shouldFetchUnverifiedSenders = this._isTimelineOpen && decryption?.hasUnverifiedSenders;
|
||||||
// only log rooms where we actually do something
|
// only log rooms where we actually do something
|
||||||
if (shouldFlushKeys || shouldFetchUnverifiedSenders) {
|
if (shouldFlushKeys || shouldFetchUnverifiedSenders) {
|
||||||
log.wrap({l: "room", id: this.id}, async log => {
|
await log.wrap({l: "room", id: this.id}, async log => {
|
||||||
const promises = [];
|
const promises = [];
|
||||||
if (shouldFlushKeys) {
|
if (shouldFlushKeys) {
|
||||||
promises.push(this._roomEncryption.flushPendingRoomKeyShares(this._hsApi, null, log));
|
promises.push(this._roomEncryption.flushPendingRoomKeyShares(this._hsApi, null, log));
|
||||||
|
Loading…
Reference in New Issue
Block a user