diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-21 16:41:05 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-12-21 16:41:05 -0500 |
commit | 25d40bc98c71f526c256076f0c21c04bbb4e99e7 (patch) | |
tree | a674c237a41598854e44bc7fef986f71229d69ba /webapp/components/post_view | |
parent | ba6e370ca71abacaa30234cb164427d27c86df13 (diff) | |
download | chat-25d40bc98c71f526c256076f0c21c04bbb4e99e7.tar.gz chat-25d40bc98c71f526c256076f0c21c04bbb4e99e7.tar.bz2 chat-25d40bc98c71f526c256076f0c21c04bbb4e99e7.zip |
PLT-4431 Add post queuing to the webapp (#4800)
* Add post queuing to the webapp
* Add more abstraction
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/components/pending_post_options.jsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/webapp/components/post_view/components/pending_post_options.jsx b/webapp/components/post_view/components/pending_post_options.jsx index d9f98e958..3c78b8b9b 100644 --- a/webapp/components/post_view/components/pending_post_options.jsx +++ b/webapp/components/post_view/components/pending_post_options.jsx @@ -3,7 +3,7 @@ import PostStore from 'stores/post_store.jsx'; -import {createPost} from 'actions/post_actions.jsx'; +import {queuePost} from 'actions/post_actions.jsx'; import Constants from 'utils/constants.jsx'; @@ -22,10 +22,7 @@ export default class PendingPostOptions extends React.Component { e.preventDefault(); var post = this.props.post; - createPost(post, true, - () => { - // DO nothing. - }, + queuePost(post, true, null, (err) => { if (err.id === 'api.post.create_post.root_id.app_error') { this.showPostDeletedModal(); |