Bold the profile name and truncate the pubkey

pull/388/head
Beaudan 6 years ago
parent f7039080af
commit 958766dc65

@ -21,7 +21,7 @@ export class ContactName extends React.Component<Props> {
const shouldShowProfile = Boolean(profileName && !name);
const profileElement = shouldShowProfile ? (
<span className={`${prefix}__profile-name`}>
<Emojify text={profileName || ''} i18n={i18n} />
<b><Emojify text={profileName || ''} i18n={i18n} /></b>
</span>
) : null;

@ -307,7 +307,7 @@ export class Message extends React.PureComponent<Props, State> {
return (
<div className="module-message__author">
<ContactName
phoneNumber={authorPhoneNumber}
phoneNumber={`(...${authorPhoneNumber.substring(authorPhoneNumber.length - 6, authorPhoneNumber.length)})`}
name={authorName}
profileName={authorProfileName}
module="module-message__author"

Loading…
Cancel
Save