mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[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:
parent
826f6e561a
commit
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) {
|
} else if (isFromAutoResponder) {
|
||||||
userProfile = (
|
userProfile = (
|
||||||
<span className='auto-responder'>
|
<span className='auto-responder'>
|
||||||
|
Loading…
Reference in New Issue
Block a user