From 778f3721a6af77fa8f2979c0acc19f3e39e8c59b Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Thu, 7 Jul 2022 12:48:05 -0400 Subject: [PATCH] Do not update unread count for story messages --- ts/models/messages.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/models/messages.ts b/ts/models/messages.ts index fced64dd3..123a22fce 100644 --- a/ts/models/messages.ts +++ b/ts/models/messages.ts @@ -2821,7 +2821,9 @@ export class MessageModel extends window.Backbone.Model { window.Whisper.events.trigger('incrementProgress'); confirm(); - conversation.queueJob('updateUnread', () => conversation.updateUnread()); + if (!isStory(this.attributes)) { + conversation.queueJob('updateUnread', () => conversation.updateUnread()); + } } // This function is called twice - once from handleDataMessage, and then again from