don't assume timeline is open as have an await since last check

This commit is contained in:
Bruno Windels 2022-10-28 16:49:33 +02:00
parent 6dbcd46d80
commit d0122d17c0

View File

@ -315,7 +315,7 @@ export class Room extends BaseRoom {
newlyVerifiedDecryption.applyToEntries(newEntries, updateCallback); newlyVerifiedDecryption.applyToEntries(newEntries, updateCallback);
newlyVerifiedDecryption.applyToEntries(updated, updateCallback); newlyVerifiedDecryption.applyToEntries(updated, updateCallback);
// TODO: update _observedEvents here as well? // TODO: update _observedEvents here as well?
this._timeline.replaceEntries(verifiedEntries); this._timeline?.replaceEntries(verifiedEntries);
}); });
promises.push(promise); promises.push(promise);
} }