mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-4431 Add post queuing to the webapp (#4800)
* Add post queuing to the webapp * Add more abstraction
This commit is contained in:
committed by
Christopher Speller
parent
ba6e370ca7
commit
25d40bc98c
@@ -161,10 +161,7 @@ export default class CreatePost extends React.Component {
|
||||
|
||||
GlobalActions.emitUserPostedEvent(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 should never actually happen since you can't reply from this textbox
|
||||
|
||||
Reference in New Issue
Block a user