[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>
Этот коммит содержится в:
Ashish Dhama
2023-04-25 18:44:18 +05:30
коммит произвёл GitHub
родитель 826f6e561a
Коммит 33af25f2ab

Просмотреть файл

@@ -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'>