PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4764)

Этот коммит содержится в:
Debanshu Kundu
2016-12-19 19:35:39 +05:30
коммит произвёл Harrison Healey
родитель 999d1553e1
Коммит 6a5cdd5cdf
5 изменённых файлов: 54 добавлений и 11 удалений

Просмотреть файл

@@ -15,6 +15,10 @@ 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') {
@@ -28,4 +32,4 @@ export function getProfilePicSrcForPost(post, timestamp) {
}
return src;
}
}