[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 <build@mattermost.com>
This commit is contained in:
Ashish Dhama 2023-04-25 18:44:18 +05:30 committed by GitHub
parent 826f6e561a
commit 33af25f2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,11 @@ const PostUserProfile = (props: Props): JSX.Element | null => {
/>
);
botIndicator = (<BotTag/>);
// 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 = (<BotTag/>);
}
} else if (isFromAutoResponder) {
userProfile = (
<span className='auto-responder'>