diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-02-02 10:52:18 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-02-04 11:38:56 -0500 |
commit | fcb92fa1b53a2b67323a881e7cb03965d3ec24d1 (patch) | |
tree | f9e9c4470fdb98c558ba6db4e5ebb08fc2a4a617 /web/react | |
parent | db13b7a3ca3d3099392be557e47f838a7851a69a (diff) | |
download | chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.tar.gz chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.tar.bz2 chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.zip |
Added ephemeral messages sent when a user mentions someone not in the channel
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/stores/socket_store.jsx | 1 | ||||
-rw-r--r-- | web/react/utils/constants.jsx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx index 744c2c8e5..745b94313 100644 --- a/web/react/stores/socket_store.jsx +++ b/web/react/stores/socket_store.jsx @@ -109,6 +109,7 @@ class SocketStoreClass extends EventEmitter { handleMessage(msg) { switch (msg.action) { case SocketEvents.POSTED: + case SocketEvents.EPHEMERAL_MESSAGE: handleNewPostEvent(msg, this.translations); break; diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx index 7d103a270..cfb33a79c 100644 --- a/web/react/utils/constants.jsx +++ b/web/react/utils/constants.jsx @@ -79,7 +79,8 @@ export default { USER_ADDED: 'user_added', USER_REMOVED: 'user_removed', TYPING: 'typing', - PREFERENCE_CHANGED: 'preference_changed' + PREFERENCE_CHANGED: 'preference_changed', + EPHEMERAL_MESSAGE: 'ephemeral_message' }, //SPECIAL_MENTIONS: ['all', 'channel'], |