summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-21 16:41:05 -0500
committerChristopher Speller <crspeller@gmail.com>2016-12-21 16:41:05 -0500
commit25d40bc98c71f526c256076f0c21c04bbb4e99e7 (patch)
treea674c237a41598854e44bc7fef986f71229d69ba /webapp/components/create_comment.jsx
parentba6e370ca71abacaa30234cb164427d27c86df13 (diff)
downloadchat-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/create_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index 3bd8d5d1c..8ecda6777 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -196,10 +196,7 @@ export default class CreateComment extends React.Component {
GlobalActions.emitUserCommentedEvent(post);
- PostActions.createPost(post, false,
- () => {
- // DO nothing.
- },
+ PostActions.queuePost(post, false, null,
(err) => {
if (err.id === 'api.post.create_post.root_id.app_error') {
this.showPostDeletedModal();