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 shouldShowProfile = Boolean(profileName && !name);
const profileElement = shouldShowProfile ? ( const profileElement = shouldShowProfile ? (
<span className={`${prefix}__profile-name`}> <span className={`${prefix}__profile-name`}>
<Emojify text={profileName || ''} i18n={i18n} /> <b><Emojify text={profileName || ''} i18n={i18n} /></b>
</span> </span>
) : null; ) : null;

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

Loading…
Cancel
Save