From 676d37eeb00d07a4fa00cfebe19f8ffa96d19c19 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Mon, 10 Mar 2025 19:28:47 -0500 Subject: [PATCH] fix dms unread indicator --- src/webpage/direct.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/webpage/direct.ts b/src/webpage/direct.ts index f332752..b139cde 100644 --- a/src/webpage/direct.ts +++ b/src/webpage/direct.ts @@ -466,6 +466,15 @@ class Group extends Channel { this.idToPrev.set(messagez.id, this.lastmessageid); } this.lastmessageid = messagez.id; + + if (messagez.author === this.localuser.user) { + const next = this.messages.get(this.idToNext.get(this.lastreadmessageid as string) as string); + this.lastreadmessageid = messagez.id; + if (next) { + next.generateMessage(); + } + } + if (messagez.author === this.localuser.user) { this.lastreadmessageid = messagez.id; if (this.myhtml) {