summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/components/post_body.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view/components/post_body.jsx')
-rw-r--r--webapp/components/post_view/components/post_body.jsx18
1 files changed, 1 insertions, 17 deletions
diff --git a/webapp/components/post_view/components/post_body.jsx b/webapp/components/post_view/components/post_body.jsx
index e690b3702..8b650423f 100644
--- a/webapp/components/post_view/components/post_body.jsx
+++ b/webapp/components/post_view/components/post_body.jsx
@@ -156,22 +156,6 @@ export default class PostBody extends React.Component {
);
}
- let message;
- if (this.props.post.state === Constants.POST_DELETED) {
- message = (
- <p>
- <FormattedMessage
- id='post_body.deleted'
- defaultMessage='(message deleted)'
- />
- </p>
- );
- } else {
- message = (
- <PostMessageContainer post={this.props.post}/>
- );
- }
-
const messageWrapper = (
<div
key={`${post.id}_message`}
@@ -179,7 +163,7 @@ export default class PostBody extends React.Component {
className={postClass}
>
{loading}
- {message}
+ <PostMessageContainer post={this.props.post}/>
</div>
);