summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorGirish S <girish.sonawane@gmail.com>2015-10-30 12:56:50 +0530
committerGirish S <girish.sonawane@gmail.com>2015-10-30 12:56:50 +0530
commitd6f0f70798000cdd673b21eb95893a3129d8c6d5 (patch)
treece867dc1e60b74dc5903ac6af0832b5493838406 /web
parent8cf5687e8af4d2f72ccc0bd15fde612738f9141a (diff)
downloadchat-d6f0f70798000cdd673b21eb95893a3129d8c6d5.tar.gz
chat-d6f0f70798000cdd673b21eb95893a3129d8c6d5.tar.bz2
chat-d6f0f70798000cdd673b21eb95893a3129d8c6d5.zip
display webhook notifications to the creator of webhook
Diffstat (limited to 'web')
-rw-r--r--web/react/stores/socket_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index 4d69a6716..bccadd405 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -165,7 +165,7 @@ function handleNewPostEvent(msg) {
}
// Send desktop notification
- if (UserStore.getCurrentId() !== msg.user_id) {
+ if (UserStore.getCurrentId() !== msg.user_id || post.props.from_webhook === 'true') {
const msgProps = msg.props;
let mentions = [];