From 93bbeee400ce209dd6f5ffaf83b3f797e1a5ca19 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 11 Jan 2022 11:49:06 +0530 Subject: [PATCH] Don't pass relatedEntry in param --- src/matrix/room/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 1d2c9a17..4b685fcd 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -275,7 +275,7 @@ export class Timeline { if (relatedEntry?.addRelation(entry)) { // update other entries for which this entry is a context entry relatedEntry.contextForEntries?.forEach(e => { - this._remoteEntries.findAndUpdate(te => te.id === e.id, () => { return { reply: relatedEntry }; }); + this._remoteEntries.findAndUpdate(te => te.id === e.id, () => true); }); } }