diff --git a/src/components/views/messages/SenderProfile.js b/src/components/views/messages/SenderProfile.js index 1d21ffd0fd..5ca2fc6ed8 100644 --- a/src/components/views/messages/SenderProfile.js +++ b/src/components/views/messages/SenderProfile.js @@ -105,11 +105,20 @@ export default React.createClass({ return ; // emote message must include the name so don't duplicate it } - const displayedGroups = this._getDisplayedGroups( - this.state.userGroups, this.state.relatedGroups, - ); + let flair =
; + if (this.props.enableFlair) { + const displayedGroups = this._getDisplayedGroups( + this.state.userGroups, this.state.relatedGroups, + ); - name = displayedGroups.length > 0 ? name.replace(' (IRC)', '') : name; + // Backwards-compatible replacing of "(IRC)" with AS user flair + name = displayedGroups.length > 0 ? name.replace(' (IRC)', '') : name; + + flair =