mirror of https://github.com/vector-im/riot-web
Merge pull request #2664 from tebatalla/patch-1
Fix off by one error for username colorspull/21833/head
commit
338eafab2b
|
@ -97,7 +97,7 @@ export default React.createClass({
|
|||
render() {
|
||||
const EmojiText = sdk.getComponent('elements.EmojiText');
|
||||
const {mxEvent} = this.props;
|
||||
const colorNumber = hashCode(mxEvent.getSender()) % 8;
|
||||
const colorNumber = (hashCode(mxEvent.getSender()) % 8) + 1;
|
||||
const name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
|
||||
const {msgtype} = mxEvent.getContent();
|
||||
|
||||
|
|
Loading…
Reference in New Issue