PLT-6658 Ignore correct message types for setting unreads for teams (#6532)
* Ignore correct message types for setting unreads for teams * Fix ESLint error
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7ad1571701
Коммит
09e7ba23e3
@@ -8,7 +8,6 @@ import ChannelStore from 'stores/channel_store.jsx';
|
|||||||
|
|
||||||
import Constants from 'utils/constants.jsx';
|
import Constants from 'utils/constants.jsx';
|
||||||
const NotificationPrefs = Constants.NotificationPrefs;
|
const NotificationPrefs = Constants.NotificationPrefs;
|
||||||
const PostTypes = Constants.PostTypes;
|
|
||||||
|
|
||||||
import {getSiteURL} from 'utils/url.jsx';
|
import {getSiteURL} from 'utils/url.jsx';
|
||||||
const ActionTypes = Constants.ActionTypes;
|
const ActionTypes = Constants.ActionTypes;
|
||||||
@@ -430,7 +429,7 @@ TeamStore.dispatchToken = AppDispatcher.register((payload) => {
|
|||||||
TeamStore.saveStats(action.team_id, action.stats);
|
TeamStore.saveStats(action.team_id, action.stats);
|
||||||
break;
|
break;
|
||||||
case ActionTypes.RECEIVED_POST:
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user