update observed events as well

This commit is contained in:
Bruno Windels 2022-10-28 16:55:20 +02:00
parent 218d25d973
commit dc25f96e73

View File

@ -314,8 +314,8 @@ export class Room extends BaseRoom {
const updateCallback = entry => verifiedEntries.push(entry);
newlyVerifiedDecryption.applyToEntries(newEntries, updateCallback);
newlyVerifiedDecryption.applyToEntries(updatedEntries, updateCallback);
// TODO: update _observedEvents here as well?
this._timeline?.replaceEntries(verifiedEntries);
this._observedEvents?.updateEvents(verifiedEntries);
});
promises.push(promise);
}