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

Loading…
Cancel
Save