From c2852d9581f8a39795bd65ca88633d9819310e63 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Wed, 7 Jul 2021 06:38:09 -0400 Subject: [PATCH] MM-36808 fix auto responder posts (#5505) --- 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 = (