Skip to content

Commit

Permalink
Merge branch 'fix/bot-tag-appearing-twice' into 'master'
Browse files Browse the repository at this point in the history
Fix: Bot tag appearing twice

See merge request kchat/webapp!683
  • Loading branch information
antonbuks committed Mar 19, 2024
2 parents 7d5b680 + 9d86926 commit 39f2735
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapp/channels/src/components/post/user_profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ 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'>
Expand Down

0 comments on commit 39f2735

Please sign in to comment.