From fc5ab3997bd2f235a422512e3d34752dd7819782 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 27 Jan 2026 20:00:45 -0600 Subject: [PATCH] more unread fixes --- src/webpage/channel.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index 1bb4fc8..7da82a2 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -53,9 +53,14 @@ class Channel extends SnowFlake { set lastreadmessageid(id: string | undefined) { const cur = this.lastreadmessageidint; this.lastreadmessageidint = id; - const m = this.messages.get(cur as string); - if (!m) return; - m.generateMessage(); + const m = this.messages.get(this.idToPrev.get(cur as string) as string); + if (m) { + m.generateMessage(); + } + const m2 = this.messages.get(this.idToPrev.get(id as string) as string); + if (m2) { + m2.generateMessage(); + } } lastmessageid?: string; trueLastMessageid?: string;