Fix issue with thread notification state ignoring initial events (#8417)

This commit is contained in:
Michael Telatynski 2022-04-29 09:48:57 +01:00 committed by GitHub
parent 565488a10a
commit fddbc429a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -31,6 +31,10 @@ export class ThreadNotificationState extends NotificationState implements IDestr
super();
this.thread.on(ThreadEvent.NewReply, this.handleNewThreadReply);
this.thread.on(ThreadEvent.ViewThread, this.resetThreadNotification);
if (this.thread.replyToEvent) {
// Process the current tip event
this.handleNewThreadReply(this.thread, this.thread.replyToEvent);
}
}
public destroy(): void {