Fixed edge cases with leaving a direct channel while viewing that channel

Этот коммит содержится в:
hmhealey
2015-10-07 11:34:29 -04:00
родитель ed6b2cd164
Коммит 097d236f43
4 изменённых файлов: 11 добавлений и 21 удалений

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

@@ -82,21 +82,6 @@ export default class MoreDirectChannels extends React.Component {
);
};
}
} else {
if (channel.id === ChannelStore.getCurrentId()) {
active = 'active';
}
if (channel.unread) {
badge = <span className='badge pull-right small'>{channel.unread}</span>;
titleClass = 'unread-title';
}
handleClick = function clickHandler(e) {
e.preventDefault();
utils.switchChannel(channel);
$(React.findDOMNode(self.refs.modal)).modal('hide');
};
}
return (