Fix badge and tab */(1) not disappearing until switching away from channel
Этот коммит содержится в:
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user