Prevented RHS from closing when you reply to a message that had been deleted. (#5651)

Этот коммит содержится в:
Christopher Speller
2017-03-06 16:10:43 -05:00
коммит произвёл Corey Hulen
родитель a87cb40993
Коммит 944e74feb8
3 изменённых файлов: 2 добавлений и 27 удалений

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

@@ -209,6 +209,8 @@ export default class CreateComment extends React.Component {
(err) => {
if (err.id === 'api.post.create_post.root_id.app_error') {
this.showPostDeletedModal();
PostStore.removePendingPost(post.channel_id, post.pending_post_id);
this.setState({message: post.message});
} else {
this.forceUpdate();
}