PLT-4431 Add post queuing to the webapp (#4800)

* Add post queuing to the webapp

* Add more abstraction
Этот коммит содержится в:
Joram Wilander
2016-12-21 16:41:05 -05:00
коммит произвёл Christopher Speller
родитель ba6e370ca7
Коммит 25d40bc98c
5 изменённых файлов: 56 добавлений и 14 удалений

Просмотреть файл

@@ -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();