Skip to content

Commit

Permalink
Merge b7704fe into 1cfafed
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander committed Feb 13, 2017
2 parents 1cfafed + b7704fe commit fe3baa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/stores/team_store.jsx
Expand Up @@ -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();
Expand Down

0 comments on commit fe3baa4

Please sign in to comment.