summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-11-02 10:54:38 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-11-02 10:54:38 -0400
commitd8aad0d4c66544dc0047af56366f7c37ebf9a3dc (patch)
tree665d4590ece1c62b719c5f061ba3a414ab279a03
parentb8fcc0a5c40a0d15db4606766d49b960e59b9bb4 (diff)
downloadchat-d8aad0d4c66544dc0047af56366f7c37ebf9a3dc.tar.gz
chat-d8aad0d4c66544dc0047af56366f7c37ebf9a3dc.tar.bz2
chat-d8aad0d4c66544dc0047af56366f7c37ebf9a3dc.zip
Checking the post is not deleted before displaying attachments (#4426)
-rw-r--r--webapp/components/post_view/components/post_body.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_body.jsx b/webapp/components/post_view/components/post_body.jsx
index c23939c1f..5db3e74ce 100644
--- a/webapp/components/post_view/components/post_body.jsx
+++ b/webapp/components/post_view/components/post_body.jsx
@@ -141,7 +141,7 @@ export default class PostBody extends React.Component {
}
let fileAttachmentHolder = null;
- if ((post.file_ids && post.file_ids.length > 0) || (post.filenames && post.filenames.length > 0)) {
+ if (((post.file_ids && post.file_ids.length > 0) || (post.filenames && post.filenames.length > 0)) && this.props.post.state !== Constants.POST_DELETED) {
fileAttachmentHolder = (
<FileAttachmentListContainer
post={post}