Merge pull request #635 from hmhealey/plt159

PLT-159/MM-2074 Changed unread posts indicator to not be shown for the current channel
Этот коммит содержится в:
Christopher Speller
2015-09-10 08:24:50 -04:00
родитель 5ea3fb0f15 2e5a58a11e
Коммит e82070c2ce

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

@@ -315,11 +315,13 @@ export default class Sidebar extends React.Component {
if (unread) { if (unread) {
titleClass = 'unread-title'; titleClass = 'unread-title';
if (channel.id !== activeId) {
if (!this.firstUnreadChannel) { if (!this.firstUnreadChannel) {
this.firstUnreadChannel = channel.name; this.firstUnreadChannel = channel.name;
} }
this.lastUnreadChannel = channel.name; this.lastUnreadChannel = channel.name;
} }
}
var badge = null; var badge = null;
if (channelMember) { if (channelMember) {