diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-08-19 11:15:58 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-08-19 11:15:58 -0400 |
commit | a0a951a0693ae57e7851b11371513e9716f81ab1 (patch) | |
tree | fbcc7590bc5376bc15c9e1517e4c665086f830da /web/react/components/post_info.jsx | |
parent | e664040f027496023119b492141b61cd99727183 (diff) | |
parent | cc40ca1ac01063441c35f8e5b57f813561a0b739 (diff) | |
download | chat-a0a951a0693ae57e7851b11371513e9716f81ab1.tar.gz chat-a0a951a0693ae57e7851b11371513e9716f81ab1.tar.bz2 chat-a0a951a0693ae57e7851b11371513e9716f81ab1.zip |
Merge pull request #398 from mattermost/mm-1593
MM-1593 Added a message deleted indicator
Diffstat (limited to 'web/react/components/post_info.jsx')
-rw-r--r-- | web/react/components/post_info.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index c5b015cb9..c96a04c7c 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -22,6 +22,10 @@ export default class PostInfo extends React.Component { var isOwner = UserStore.getCurrentId() === post.user_id; var isAdmin = UserStore.getCurrentUser().roles.indexOf('admin') > -1; + if (post.state === Constants.POST_FAILED || post.state === Constants.POST_LOADING || post.state === Constants.POST_DELETED) { + return ''; + } + var type = 'Post'; if (post.root_id && post.root_id.length > 0) { type = 'Comment'; |