diff options
author | Asaad Mahmood <asaadmahmood@users.noreply.github.com> | 2017-01-27 20:15:14 +0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-01-27 10:15:14 -0500 |
commit | 28124d8476e456b32dd9ed14435170edd979b38d (patch) | |
tree | 3f799ca9ab05b19a25e232ff24d6519d6d9ad975 /webapp/components | |
parent | e07e9937e0e0ae4fcb2a51553238a7566d1e4c67 (diff) | |
download | chat-28124d8476e456b32dd9ed14435170edd979b38d.tar.gz chat-28124d8476e456b32dd9ed14435170edd979b38d.tar.bz2 chat-28124d8476e456b32dd9ed14435170edd979b38d.zip |
Fixing various issues with markdown spacing (#5203)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/post_view/components/post_body.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/post_view/components/post_body.jsx b/webapp/components/post_view/components/post_body.jsx index 10c24aab2..e690b3702 100644 --- a/webapp/components/post_view/components/post_body.jsx +++ b/webapp/components/post_view/components/post_body.jsx @@ -4,6 +4,7 @@ import UserStore from 'stores/user_store.jsx'; import * as Utils from 'utils/utils.jsx'; import * as GlobalActions from 'actions/global_actions.jsx'; +import * as PostUtils from 'utils/post_utils.jsx'; import Constants from 'utils/constants.jsx'; import CommentedOnFilesMessageContainer from './commented_on_files_message_container.jsx'; import FileAttachmentListContainer from 'components/file_attachment_list_container.jsx'; @@ -141,6 +142,10 @@ export default class PostBody extends React.Component { ); } + if (PostUtils.isEdited(this.props.post)) { + postClass += ' post--edited'; + } + let fileAttachmentHolder = null; if (((post.file_ids && post.file_ids.length > 0) || (post.filenames && post.filenames.length > 0)) && this.props.post.state !== Constants.POST_DELETED) { fileAttachmentHolder = ( |