PLT-159 Changed unread posts indicator to not be shown for the current channel

Этот коммит содержится в:
hmhealey
2015-09-09 15:21:44 -04:00
родитель e6d4661aba
Коммит 2e5a58a11e

Просмотреть файл

@@ -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;