From 1026b7d84c9560802c7e5bcaded90a4748951bd5 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Tue, 1 Aug 2017 23:23:37 +0800 Subject: add POST_UPDATED constant for socket events (#7074) --- webapp/utils/constants.jsx | 3 +++ 1 file changed, 3 insertions(+) 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: [ -- cgit v1.2.3-1-g7c22