Shorten pubkeys in quotations too

pull/503/head
Maxim Shishmarev 6 years ago
parent 530a9201a2
commit 08cab426c5

@ -590,6 +590,10 @@ export class Message extends React.PureComponent<Props, State> {
const quoteColor =
direction === 'incoming' ? authorColor : quote.authorColor;
const shortenedPubkey = `(...${quote.authorPhoneNumber.substring(
quote.authorPhoneNumber.length - 6
)})`;
return (
<Quote
i18n={i18n}
@ -597,7 +601,7 @@ export class Message extends React.PureComponent<Props, State> {
text={quote.text}
attachment={quote.attachment}
isIncoming={direction === 'incoming'}
authorPhoneNumber={quote.authorPhoneNumber}
authorPhoneNumber={shortenedPubkey}
authorProfileName={quote.authorProfileName}
authorName={quote.authorName}
authorColor={quoteColor}

Loading…
Cancel
Save