summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-31 18:05:17 -0400
committerGitHub <noreply@github.com>2017-05-31 18:05:17 -0400
commit09e7ba23e3cf92752236fb12e434735aeb292c15 (patch)
treea81d4c53239cac93655722ba7b4f33b126943fd0 /webapp
parent7ad1571701e92b29cd00af078942a57648b06afb (diff)
downloadchat-09e7ba23e3cf92752236fb12e434735aeb292c15.tar.gz
chat-09e7ba23e3cf92752236fb12e434735aeb292c15.tar.bz2
chat-09e7ba23e3cf92752236fb12e434735aeb292c15.zip
PLT-6658 Ignore correct message types for setting unreads for teams (#6532)
* Ignore correct message types for setting unreads for teams * Fix ESLint error
Diffstat (limited to 'webapp')
-rw-r--r--webapp/stores/team_store.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/stores/team_store.jsx b/webapp/stores/team_store.jsx
index 2dc034199..7bb9afb63 100644
--- a/webapp/stores/team_store.jsx
+++ b/webapp/stores/team_store.jsx
@@ -8,7 +8,6 @@ import ChannelStore from 'stores/channel_store.jsx';
import Constants from 'utils/constants.jsx';
const NotificationPrefs = Constants.NotificationPrefs;
-const PostTypes = Constants.PostTypes;
import {getSiteURL} from 'utils/url.jsx';
const ActionTypes = Constants.ActionTypes;
@@ -430,7 +429,7 @@ TeamStore.dispatchToken = AppDispatcher.register((payload) => {
TeamStore.saveStats(action.team_id, action.stats);
break;
case ActionTypes.RECEIVED_POST:
- if (action.post.type === PostTypes.JOIN_LEAVE || action.post.type === PostTypes.JOIN_CHANNEL || action.post.type === PostTypes.LEAVE_CHANNEL) {
+ if (Constants.IGNORE_POST_TYPES.indexOf(action.post.type) !== -1) {
return;
}