mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Prevent unnecessary store emits (#6285)
* Remove unnecessary store emits * Drastically reduce number of emitted changes
This commit is contained in:
@@ -119,7 +119,7 @@ export default class NeedsTeam extends React.Component {
|
||||
window.isActive = true;
|
||||
$(window).on('focus', () => {
|
||||
this.props.actions.viewChannel(ChannelStore.getCurrentId());
|
||||
ChannelStore.resetCounts(ChannelStore.getCurrentId());
|
||||
ChannelStore.resetCounts([ChannelStore.getCurrentId()]);
|
||||
ChannelStore.emitChange();
|
||||
|
||||
window.isActive = true;
|
||||
|
||||
Reference in New Issue
Block a user