From d0122d17c0ceffe4cc5d4a0938d3e968ad83537e Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:49:33 +0200 Subject: [PATCH] don't assume timeline is open as have an await since last check --- 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 ad8ec110..90a6ec26 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -315,7 +315,7 @@ export class Room extends BaseRoom { newlyVerifiedDecryption.applyToEntries(newEntries, updateCallback); newlyVerifiedDecryption.applyToEntries(updated, updateCallback); // TODO: update _observedEvents here as well? - this._timeline.replaceEntries(verifiedEntries); + this._timeline?.replaceEntries(verifiedEntries); }); promises.push(promise); }