From 16c3915d1afafa6b1a9120150977711a4f3c8345 Mon Sep 17 00:00:00 2001
From: enahum <nahumhbl@gmail.com>
Date: Mon, 9 Jan 2017 11:25:11 -0300
Subject: PLT-5151 Show jewel with only mentions on mobile (#5004)

---
 webapp/components/notify_counts.jsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'webapp/components/notify_counts.jsx')

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;
         }
     });
 
-- 
cgit v1.2.3-1-g7c22

