diff options
author | enahum <nahumhbl@gmail.com> | 2017-01-09 11:25:11 -0300 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-09 09:25:11 -0500 |
commit | 16c3915d1afafa6b1a9120150977711a4f3c8345 (patch) | |
tree | 0d0d0bcf76ad7586156924957e892c46ba8d2ea3 | |
parent | 12662d0c877b585c96d35b91fea4b6e99fcba749 (diff) | |
download | chat-16c3915d1afafa6b1a9120150977711a4f3c8345.tar.gz chat-16c3915d1afafa6b1a9120150977711a4f3c8345.tar.bz2 chat-16c3915d1afafa6b1a9120150977711a4f3c8345.zip |
PLT-5151 Show jewel with only mentions on mobile (#5004)
-rw-r--r-- | webapp/components/notify_counts.jsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/webapp/components/notify_counts.jsx b/webapp/components/notify_counts.jsx index d49925780..55ede2d90 100644 --- a/webapp/components/notify_counts.jsx +++ b/webapp/components/notify_counts.jsx @@ -13,7 +13,7 @@ function getCountsStateFromStores() { teamMembers.forEach((member) => { if (member.team_id !== TeamStore.getCurrentId()) { - count += ((member.msg_count || 0) + (member.mention_count || 0)); + count += (member.mention_count || 0); } }); @@ -27,8 +27,6 @@ function getCountsStateFromStores() { count += channel.total_msg_count - channelMember.msg_count; } else if (channelMember.mention_count > 0) { count += channelMember.mention_count; - } else if (channelMember.notify_props.mark_unread !== 'mention' && channel.total_msg_count - channelMember.msg_count > 0) { - count += 1; } }); |