summaryrefslogtreecommitdiffstats
path: root/web/react/dispatcher/event_helpers.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-02-01 15:22:44 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-02-04 11:38:56 -0500
commitdb13b7a3ca3d3099392be557e47f838a7851a69a (patch)
tree65b36c76adba1112b6613e9b59f39588483c259a /web/react/dispatcher/event_helpers.jsx
parentb7d045844c4d00d8268da50f2388be1d12c91829 (diff)
downloadchat-db13b7a3ca3d3099392be557e47f838a7851a69a.tar.gz
chat-db13b7a3ca3d3099392be557e47f838a7851a69a.tar.bz2
chat-db13b7a3ca3d3099392be557e47f838a7851a69a.zip
Changed deleted posts to be more general ephemeral posts
Diffstat (limited to 'web/react/dispatcher/event_helpers.jsx')
-rw-r--r--web/react/dispatcher/event_helpers.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/react/dispatcher/event_helpers.jsx b/web/react/dispatcher/event_helpers.jsx
index 5eb319320..cb41bd1bb 100644
--- a/web/react/dispatcher/event_helpers.jsx
+++ b/web/react/dispatcher/event_helpers.jsx
@@ -180,3 +180,10 @@ export function emitPreferenceChangedEvent(preference) {
preference
});
}
+
+export function emitRemovePost(post) {
+ AppDispatcher.handleViewAction({
+ type: Constants.ActionTypes.REMOVE_POST,
+ post
+ });
+}