summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-08-01 23:23:37 +0800
committerGitHub <noreply@github.com>2017-08-01 23:23:37 +0800
commit1026b7d84c9560802c7e5bcaded90a4748951bd5 (patch)
treebfbcc705d4eddd98a852dff322606d60c5937485 /webapp
parent5da5c0bbfb80cb5c9cf2699f42d17decc2d60f5b (diff)
downloadchat-1026b7d84c9560802c7e5bcaded90a4748951bd5.tar.gz
chat-1026b7d84c9560802c7e5bcaded90a4748951bd5.tar.bz2
chat-1026b7d84c9560802c7e5bcaded90a4748951bd5.zip
add POST_UPDATED constant for socket events (#7074)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/utils/constants.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx
index f3d1520c7..a36a518d8 100644
--- a/webapp/utils/constants.jsx
+++ b/webapp/utils/constants.jsx
@@ -70,6 +70,7 @@ export const ActionTypes = keyMirror({
CREATE_POST: null,
CREATE_COMMENT: null,
POST_DELETED: null,
+ POST_UPDATED: null,
REMOVE_POST: null,
RECEIVED_CHANNELS: null,
@@ -224,6 +225,7 @@ export const SocketEvents = {
POSTED: 'posted',
POST_EDITED: 'post_edited',
POST_DELETED: 'post_deleted',
+ POST_UPDATED: 'post_updated',
CHANNEL_CREATED: 'channel_created',
CHANNEL_DELETED: 'channel_deleted',
CHANNEL_UPDATED: 'channel_updated',
@@ -432,6 +434,7 @@ export const Constants = {
POST_LOADING: 'loading',
POST_FAILED: 'failed',
POST_DELETED: 'deleted',
+ POST_UPDATED: 'updated',
SYSTEM_MESSAGE_PREFIX: 'system_',
SYSTEM_MESSAGE_PROFILE_IMAGE: logoImage,
RESERVED_TEAM_NAMES: [