From 33af25f2abc40b03a7102b5a8c198ce37f891fdb Mon Sep 17 00:00:00 2001 From: Ashish Dhama <16203333+AshishDhama@users.noreply.github.com> Date: Tue, 25 Apr 2023 18:44:18 +0530 Subject: [PATCH] [MM-52119]: Add condition for bot tag for webhook post if a bot account is used for webhook (#22926) * Add condition for bot tag for webhook post if a bot account used for webhook Co-authored-by: Mattermost Build --- webapp/channels/src/components/post/user_profile.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/channels/src/components/post/user_profile.tsx b/webapp/channels/src/components/post/user_profile.tsx index f9556de359..ca2d0ea41e 100644 --- a/webapp/channels/src/components/post/user_profile.tsx +++ b/webapp/channels/src/components/post/user_profile.tsx @@ -95,7 +95,11 @@ const PostUserProfile = (props: Props): JSX.Element | null => { /> ); - botIndicator = (); + // user profile component checks and add bot tag in case webhook is from bot account, but if webhook is from user account we need this. + + if (!isBot) { + botIndicator = (); + } } else if (isFromAutoResponder) { userProfile = (