diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-09 15:21:44 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-09 15:22:43 -0400 |
commit | 2e5a58a11eed385092129775f1a0dd5a57e0c2ce (patch) | |
tree | 74a4b013377a3ba3ee85ed2a871cff7e559cd012 /web | |
parent | e6d4661aba8c25901329bd3fcff8e01ddc6ae600 (diff) | |
download | chat-2e5a58a11eed385092129775f1a0dd5a57e0c2ce.tar.gz chat-2e5a58a11eed385092129775f1a0dd5a57e0c2ce.tar.bz2 chat-2e5a58a11eed385092129775f1a0dd5a57e0c2ce.zip |
PLT-159 Changed unread posts indicator to not be shown for the current channel
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/sidebar.jsx | 8 |
1 files changed, 5 insertions, 3 deletions
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; |