From bce46daa9c964e65a5104f4e89d41cfc81566d95 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 14 Sep 2020 16:33:30 +0200 Subject: [PATCH] this is shorter --- src/matrix/room/Room.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index b6adb1fc..3779f1c3 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -68,9 +68,8 @@ export class Room extends EventEmitter { } const decryptRequest = this._decryptEntries(DecryptionSource.Retry, retryEntries, txn); await decryptRequest.complete(); - if (this._timeline) { - // only adds if already present - this._timeline.replaceEntries(retryEntries); + + this._timeline?.replaceEntries(retryEntries); } // pass decryptedEntries to roomSummary }