summaryrefslogtreecommitdiffstats
path: root/web/react/stores
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-02-03 15:21:03 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-02-04 11:38:58 -0500
commitf935be121c0b6764e1e30f1b5d4eb6e78137fa36 (patch)
treed0d2907d9fd394d786a59b774261adae4afca44c /web/react/stores
parent70c3715b963cd8f2a710f8909f23696f9de7fcc7 (diff)
downloadchat-f935be121c0b6764e1e30f1b5d4eb6e78137fa36.tar.gz
chat-f935be121c0b6764e1e30f1b5d4eb6e78137fa36.tar.bz2
chat-f935be121c0b6764e1e30f1b5d4eb6e78137fa36.zip
Added helper methods to send ephemeral messages to specific users
Diffstat (limited to 'web/react/stores')
-rw-r--r--web/react/stores/socket_store.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index 745b94313..33604f44b 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -180,7 +180,6 @@ function handleNewPostEvent(msg, translations) {
mentions = JSON.parse(msg.props.mentions);
}
- const channelType = msgProps.channel_type;
const channel = ChannelStore.get(msg.channel_id);
const user = UserStore.getCurrentUser();
const member = ChannelStore.getMember(msg.channel_id);
@@ -192,7 +191,7 @@ function handleNewPostEvent(msg, translations) {
if (notifyLevel === 'none') {
return;
- } else if (notifyLevel === 'mention' && mentions.indexOf(user.id) === -1 && channelType !== Constants.DM_CHANNEL) {
+ } else if (notifyLevel === 'mention' && mentions.indexOf(user.id) === -1 && channel.type !== Constants.DM_CHANNEL) {
return;
}