From 8c5744492f592a7e42603a4d9bf26af38eb48542 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 20 Dec 2016 19:38:11 -0500 Subject: Revert "PLT-135 Showing "(Edited)" indicator if a message has been edited." (#4854) --- .../components/post_message_container.jsx | 2 +- .../post_view/components/post_message_view.jsx | 38 ++++------------------ webapp/i18n/en.json | 1 - webapp/sass/layout/_post.scss | 18 ++-------- webapp/utils/post_utils.jsx | 6 +--- 5 files changed, 11 insertions(+), 54 deletions(-) diff --git a/webapp/components/post_view/components/post_message_container.jsx b/webapp/components/post_view/components/post_message_container.jsx index 4e27cd29a..2d17e74c4 100644 --- a/webapp/components/post_view/components/post_message_container.jsx +++ b/webapp/components/post_view/components/post_message_container.jsx @@ -89,7 +89,7 @@ export default class PostMessageContainer extends React.Component { return ( - - : - '' - ); - } - render() { if (!this.props.enableFormatting) { - return ( - - {this.props.post.message} -   - {this.editedIndicator()} - - ); + return {this.props.message}; } const options = Object.assign({}, this.props.options, { @@ -83,13 +62,10 @@ export default class PostMessageView extends React.Component { }); return ( -
- - {this.editedIndicator()} -
+ ); } } diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index fa8fa67b9..5dcff8fe3 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -1649,7 +1649,6 @@ "post_info.mobile.unflag": "Unflag", "post_info.permalink": "Permalink", "post_info.reply": "Reply", - "post_message_view.edited": "(edited)", "posts_view.loadMore": "Load more messages", "posts_view.newMsg": "New Messages", "posts_view.newMsgBelow": "{count} new {count, plural, one {message} other {messages}} below", diff --git a/webapp/sass/layout/_post.scss b/webapp/sass/layout/_post.scss index bac0a2eee..ff990f9b8 100644 --- a/webapp/sass/layout/_post.scss +++ b/webapp/sass/layout/_post.scss @@ -602,7 +602,7 @@ } p + p { - margin: 1em 0; + margin-top: 1em; } ol, @@ -983,20 +983,11 @@ word-wrap: break-word; p { - display: inline; - } - - div { margin: 0 0 .4em; } p + p { - margin: 1.4em 0; - display: block; - } - - p:last-of-type { - display: inline; + margin-top: 1.4em; } li { @@ -1075,11 +1066,6 @@ color: white; } } - - span.edited { - color: #A3A3A3; - font-size: 0.87em; - } } .post__link { diff --git a/webapp/utils/post_utils.jsx b/webapp/utils/post_utils.jsx index d909b35f8..4bba784cb 100644 --- a/webapp/utils/post_utils.jsx +++ b/webapp/utils/post_utils.jsx @@ -15,10 +15,6 @@ export function isComment(post) { return false; } -export function isEdited(post) { - return post.update_at && post.update_at > post.create_at; -} - export function getProfilePicSrcForPost(post, timestamp) { let src = Client.getUsersRoute() + '/' + post.user_id + '/image?time=' + timestamp; if (post.props && post.props.from_webhook && global.window.mm_config.EnablePostIconOverride === 'true') { @@ -32,4 +28,4 @@ export function getProfilePicSrcForPost(post, timestamp) { } return src; -} +} \ No newline at end of file -- cgit v1.2.3-1-g7c22