Skip to content

Commit

Permalink
Comment clarifying why we bail out in insertEventIntoTimeline
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed May 19, 2023
1 parent d4861dc commit 0d6feaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export class Thread extends ReadReceipt<EmittedEvents, EventHandlerMap> {
if (!eventId) {
return;
}
// If the event is already in this thread, bail out
if (this.findEventById(eventId)) {
return;
}
Expand Down

0 comments on commit 0d6feaa

Please sign in to comment.