Fix badge and tab */(1) not disappearing until switching away from channel

Этот коммит содержится в:
JoramWilander
2016-02-12 14:23:12 -05:00
родитель 6cb4f82ee5
Коммит c861a24d48
3 изменённых файлов: 8 добавлений и 6 удалений

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

@@ -95,6 +95,8 @@ class ChannelLoader extends React.Component {
$(window).on('focus', function windowFocus() {
AsyncClient.updateLastViewedAt();
ChannelStore.resetCounts(ChannelStore.getCurrentId());
ChannelStore.emitChange();
window.isActive = true;
});
@@ -185,4 +187,4 @@ ChannelLoader.propTypes = {
intl: intlShape.isRequired
};
export default injectIntl(ChannelLoader);
export default injectIntl(ChannelLoader);