From 13a4a0169cae1f90dc287733d805e32588e9cf8e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 31 May 2021 16:23:59 +0200 Subject: [PATCH] remove obsolete comments --- src/matrix/room/timeline/Timeline.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 5a72750f..9251c833 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -103,7 +103,6 @@ export class Timeline { }, pee => { this._applyAndEmitLocalRelationChange(pee.pendingEvent, target => target.removeLocalRelation(pee)); }); - // we need a hook for when a pee is removed, so we can remove the local relation } else { this._localEntries = new ObservableArray(); } @@ -122,8 +121,6 @@ export class Timeline { ); // now look in remote entries based on event id if (!foundInLocalEntries && pe.relatedEventId) { - // TODO: ideally iterate in reverse as target is likely to be most recent, - // but not easy through ObservableList contract this._remoteEntries.findAndUpdate( e => e.id === pe.relatedEventId, updateOrFalse @@ -137,8 +134,6 @@ export class Timeline { replaceEntries(entries) { for (const entry of entries) { - // this will use the comparator and thus - // check for equality using the compare method in BaseEntry this._remoteEntries.update(entry, null, previousEntry => { entry.transferLocalEchoState(previousEntry); });