Do not update unread count for story messages
This commit is contained in:
parent
565425c8b6
commit
778f3721a6
1 changed files with 3 additions and 1 deletions
|
@ -2821,8 +2821,10 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
window.Whisper.events.trigger('incrementProgress');
|
window.Whisper.events.trigger('incrementProgress');
|
||||||
confirm();
|
confirm();
|
||||||
|
|
||||||
|
if (!isStory(this.attributes)) {
|
||||||
conversation.queueJob('updateUnread', () => conversation.updateUnread());
|
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
|
||||||
// saveAndNotify, a function called at the end of handleDataMessage as a cleanup for
|
// saveAndNotify, a function called at the end of handleDataMessage as a cleanup for
|
||||||
|
|
Loading…
Add table
Reference in a new issue