diff options
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r-- | webapp/components/create_comment.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx index 85f8ac864..f7564f396 100644 --- a/webapp/components/create_comment.jsx +++ b/webapp/components/create_comment.jsx @@ -146,8 +146,13 @@ class CreateComment extends React.Component { GlobalActions.emitUserCommentedEvent(post); Client.createPost( post, - () => { + (data) => { PostStore.removePendingPost(post.channel_id, post.pending_post_id); + + AppDispatcher.handleServerAction({ + type: ActionTypes.RECEIVED_POST, + post: data + }); }, (err) => { if (err.id === 'api.post.create_post.root_id.app_error') { |