diff options
Diffstat (limited to 'webapp/stores/team_store.jsx')
-rw-r--r-- | webapp/stores/team_store.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/stores/team_store.jsx b/webapp/stores/team_store.jsx index b0133e44c..46f84bc1f 100644 --- a/webapp/stores/team_store.jsx +++ b/webapp/stores/team_store.jsx @@ -401,8 +401,8 @@ TeamStore.dispatchToken = AppDispatcher.register((payload) => { return; } - var id = action.websocketMessageProps ? action.websocketMessageProps.team_id : ''; - if (TeamStore.getCurrentId() !== id && id.length > 0) { + var id = action.websocketMessageProps ? action.websocketMessageProps.team_id : null; + if (id && TeamStore.getCurrentId() !== id) { TeamStore.incrementMessages(id, action.post.channel_id); TeamStore.incrementMentionsIfNeeded(id, action.websocketMessageProps); TeamStore.emitChange(); |