From 2e5a58a11eed385092129775f1a0dd5a57e0c2ce Mon Sep 17 00:00:00 2001 From: hmhealey Date: Wed, 9 Sep 2015 15:21:44 -0400 Subject: PLT-159 Changed unread posts indicator to not be shown for the current channel --- web/react/components/sidebar.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'web/react/components/sidebar.jsx') diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index 983260187..ad934d271 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -315,10 +315,12 @@ export default class Sidebar extends React.Component { if (unread) { titleClass = 'unread-title'; - if (!this.firstUnreadChannel) { - this.firstUnreadChannel = channel.name; + if (channel.id !== activeId) { + if (!this.firstUnreadChannel) { + this.firstUnreadChannel = channel.name; + } + this.lastUnreadChannel = channel.name; } - this.lastUnreadChannel = channel.name; } var badge = null; -- cgit v1.2.3-1-g7c22