Add colored nicks settings option
This commit is contained in:
parent
ec03db4db6
commit
6c6a9e12cf
27 changed files with 577 additions and 109 deletions
|
@ -6,7 +6,7 @@ export default class Message extends PureComponent {
|
|||
handleNickClick = () => this.props.onNickClick(this.props.message.from);
|
||||
|
||||
render() {
|
||||
const { message } = this.props;
|
||||
const { message, coloredNick } = this.props;
|
||||
|
||||
const className = classnames('message', {
|
||||
[`message-${message.type}`]: message.type
|
||||
|
@ -19,7 +19,7 @@ export default class Message extends PureComponent {
|
|||
};
|
||||
|
||||
const senderStyle = {};
|
||||
if (message.from) {
|
||||
if (message.from && coloredNick) {
|
||||
senderStyle.color = stringToRGB(message.from);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue