From 5d923f3c4a7000e6aa1167e6e4ba1e65aac1a204 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 11 Oct 2019 15:27:48 +0200 Subject: [PATCH] Not show the guest badge for system messages (#3406) --- app/components/post_header/post_header.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/post_header/post_header.js b/app/components/post_header/post_header.js index 591aecebc..fdfa461de 100644 --- a/app/components/post_header/post_header.js +++ b/app/components/post_header/post_header.js @@ -205,7 +205,7 @@ export default class PostHeader extends PureComponent { }; renderTag = () => { - const {fromAutoResponder, fromWebHook, isBot, isGuest, theme} = this.props; + const {fromAutoResponder, fromWebHook, isBot, isSystemMessage, isGuest, theme} = this.props; const style = getStyleSheet(theme); if (fromWebHook || isBot) { @@ -215,6 +215,8 @@ export default class PostHeader extends PureComponent { theme={theme} /> ); + } else if (isSystemMessage) { + return null; } else if (isGuest) { return (