From 950e6a7173381d6580a41ed827af20f4c8ce2050 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Fri, 19 May 2023 15:42:25 +0100 Subject: [PATCH] Comment clarifying why we bail out in insertEventIntoTimeline --- src/models/thread.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/thread.ts b/src/models/thread.ts index f2420842dfc..05e847594af 100644 --- a/src/models/thread.ts +++ b/src/models/thread.ts @@ -254,6 +254,7 @@ export class Thread extends ReadReceipt { if (!eventId) { return; } + // If the event is already in this thread, bail out if (this.findEventById(eventId)) { return; }