Not show the guest badge for system messages (#3393)
This commit is contained in:
parent
9fa06c45d6
commit
d48610407a
1 changed files with 3 additions and 1 deletions
|
|
@ -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 (
|
||||
<GuestTag
|
||||
|
|
|
|||
Loading…
Reference in a new issue