summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-03-06 16:10:43 -0500
committerCorey Hulen <corey@hulen.com>2017-03-06 16:10:43 -0500
commit944e74feb87d9a0acbe66c0c08a74ad450ea79bd (patch)
tree42c2cfa007b9533fc2cd4c99abbb760ed8175566 /webapp/components/create_comment.jsx
parenta87cb40993c9321c1faf6adf0c0f90ed017659a9 (diff)
downloadchat-944e74feb87d9a0acbe66c0c08a74ad450ea79bd.tar.gz
chat-944e74feb87d9a0acbe66c0c08a74ad450ea79bd.tar.bz2
chat-944e74feb87d9a0acbe66c0c08a74ad450ea79bd.zip
Prevented RHS from closing when you reply to a message that had been deleted. (#5651)
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index 8f4130afb..c7dbd0717 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -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();
}