From 11cc2e57f54e47757de16efaf8ff7c560c0575f5 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Wed, 7 Jul 2021 12:54:31 +0200 Subject: [PATCH] MM-36808 fix auto responder posts (#5505) (#5515) --- app/components/post_list/post/header/header.tsx | 2 +- app/components/post_list/post/post.tsx | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/components/post_list/post/header/header.tsx b/app/components/post_list/post/header/header.tsx index 1f3ea8cb4..9004a39ae 100644 --- a/app/components/post_list/post/header/header.tsx +++ b/app/components/post_list/post/header/header.tsx @@ -95,7 +95,7 @@ const Header = ({ testID='post_header' /> )} - {!isSystemPost && + {(!isSystemPost || isAutoResponse) && | undefined = isPostPendingOrFailed(post) ? style.pendingPost : undefined; + const isAutoResponder = fromAutoResponder(post); let highlightedStyle: StyleProp; if (highlight) { @@ -175,7 +177,9 @@ const Post = ({ consecutiveStyle = style.consective; postAvatar = ; } else { - postAvatar = ( + postAvatar = isAutoResponder ? ( + + ) : ( ); - if (isSystemMessage(post)) { + if (isSystemMessage(post) && !isAutoResponder) { header = (