Do not update unread count for story messages

This commit is contained in:
Josh Perez
2022-07-07 12:48:05 -04:00
committed by GitHub
parent 565425c8b6
commit 778f3721a6

View File

@@ -2821,7 +2821,9 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
window.Whisper.events.trigger('incrementProgress'); window.Whisper.events.trigger('incrementProgress');
confirm(); 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 // This function is called twice - once from handleDataMessage, and then again from