From dc25f96e73d3a1aa11eb455e50ddc999826a9f05 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:55:20 +0200 Subject: [PATCH] update observed events as well --- src/matrix/room/Room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index e03f4cd1..ab336ea1 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -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); }