[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>
Этот коммит содержится в:
коммит произвёл
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'>
|
||||
|
||||
Ссылка в новой задаче
Block a user