From d48610407a6505a894fc1901ba3620280923474a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 11 Oct 2019 15:24:45 +0200 Subject: [PATCH] Not show the guest badge for system messages (#3393) --- 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 (