publish: restore nicknames in note interface

This commit is contained in:
Matilde Park 2020-11-04 16:30:48 -05:00
parent 11aaeaa289
commit adb91f19b8

View File

@ -17,10 +17,9 @@ interface AuthorProps {
export function Author(props: AuthorProps) {
const { contacts, ship = '', date, showImage } = props;
const noSig = ship.slice(1);
let contact = null;
if (contacts) {
contact = noSig in contacts ? contacts[noSig] : null;
contact = ship in contacts ? contacts[ship] : null;
}
const color = contact?.color ? `#${uxToHex(contact?.color)}` : "#000000";
const showAvatar = !props.hideAvatars && contact?.avatar;