summaryrefslogtreecommitdiffstats
path: root/web/react/components/rhs_thread.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-09-25 14:33:27 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-10-06 09:19:26 -0700
commit16cee7f0702e7c18d131f0a30c0ba837abcc2a0c (patch)
treed7610010634d334a904e52e62f89572b8910acb8 /web/react/components/rhs_thread.jsx
parentcbe1ab8dbac9502017a5ae5cd4eb01d9c43772e2 (diff)
downloadchat-16cee7f0702e7c18d131f0a30c0ba837abcc2a0c.tar.gz
chat-16cee7f0702e7c18d131f0a30c0ba837abcc2a0c.tar.bz2
chat-16cee7f0702e7c18d131f0a30c0ba837abcc2a0c.zip
Initial changes to how trying to comment on a deleted post is handled
Diffstat (limited to 'web/react/components/rhs_thread.jsx')
-rw-r--r--web/react/components/rhs_thread.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/react/components/rhs_thread.jsx b/web/react/components/rhs_thread.jsx
index 2f23d80d9..fdcf618d7 100644
--- a/web/react/components/rhs_thread.jsx
+++ b/web/react/components/rhs_thread.jsx
@@ -71,6 +71,13 @@ export default class RhsThread extends React.Component {
return;
}
+ if (!currentSelected.posts[currentSelected.order[0]]) {
+ if ($('#post_deleted').length > 0) {
+ $('#post_deleted').modal('show');
+ return;
+ }
+ }
+
var currentPosts = PostStore.getPosts(currentSelected.posts[currentSelected.order[0]].channel_id);
if (!currentPosts || currentPosts.order.length === 0) {