mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Checking the post is not deleted before displaying attachments (#4426)
This commit is contained in:
committed by
Joram Wilander
parent
b8fcc0a5c4
commit
d8aad0d4c6
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user