PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4764)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
999d1553e1
Коммит
6a5cdd5cdf
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user