patp name now has sigil, and nickname now renders inter

This commit is contained in:
Jimmy 2020-02-10 19:37:59 -08:00 committed by Logan Allen
parent 5bb0f5d59f
commit a5301251c3
2 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -167,10 +167,10 @@ export class Message extends Component {
let color = "#000000";
if (contact) {
name = (contact.nickname.length > 0)
? contact.nickname : props.msg.author;
? contact.nickname : "~" + props.msg.author;
color = `#${uxToHex(contact.color)}`;
}
console.log(name);
}
return (
<div
className={
@ -189,7 +189,9 @@ export class Message extends Component {
className="fr clamp-message white-d"
style={{ flexGrow: 1, marginTop: -8 }}>
<div className="hide-child" style={paddingTop}>
<p className="v-mid mono f9 gray2 dib mr3">{name}</p>
<p className="v-mid f9 gray2 dib mr3">
<div className={contact.nickname ? null : "mono"}>{name}</div>
</p>
<p className="v-mid mono f9 gray2 dib">{timestamp}</p>
<p className="v-mid mono f9 ml2 gray2 dib child dn-s">{datestamp}</p>
</div>