diff options
Diffstat (limited to 'webapp/stores/channel_store.jsx')
-rw-r--r-- | webapp/stores/channel_store.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx index f1cd0bf82..ec5ce7758 100644 --- a/webapp/stores/channel_store.jsx +++ b/webapp/stores/channel_store.jsx @@ -328,8 +328,9 @@ class ChannelStoreClass extends EventEmitter { let chMentionCount = chMember.mention_count; let chUnreadCount = ch.total_msg_count - chMember.msg_count; + // Temporary workaround for DM channels having wrong unread values if (ch.type === 'D') { - chMentionCount = chUnreadCount; + chMentionCount = 0; } else if (chMember.notify_props && chMember.notify_props.mark_unread === NotificationPrefs.MENTION) { chUnreadCount = 0; } |