diff options
author | Debanshu Kundu <debanshu.kundu@joshtechnologygroup.com> | 2017-01-12 21:17:29 +0530 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-12 10:47:29 -0500 |
commit | 739f32272ff4079b5638d6293a28ed8ffbbb926e (patch) | |
tree | 41003e0c12c7ca1bd517bac0d29dd6cd9a3d59bb /webapp/utils/post_utils.jsx | |
parent | 99493bc5fa11d8e50d46c19e2678ddb2c99c0bbb (diff) | |
download | chat-739f32272ff4079b5638d6293a28ed8ffbbb926e.tar.gz chat-739f32272ff4079b5638d6293a28ed8ffbbb926e.tar.bz2 chat-739f32272ff4079b5638d6293a28ed8ffbbb926e.zip |
PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4923)
Diffstat (limited to 'webapp/utils/post_utils.jsx')
-rw-r--r-- | webapp/utils/post_utils.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/utils/post_utils.jsx b/webapp/utils/post_utils.jsx index 4bba784cb..88021c2a5 100644 --- a/webapp/utils/post_utils.jsx +++ b/webapp/utils/post_utils.jsx @@ -15,6 +15,10 @@ export function isComment(post) { return false; } +export function isEdited(post) { + return post.edit_at > 0; +} + 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') { @@ -28,4 +32,4 @@ export function getProfilePicSrcForPost(post, timestamp) { } return src; -}
\ No newline at end of file +} |