From 08cab426c5084c6555b71da2055697a87adcf5c8 Mon Sep 17 00:00:00 2001 From: Maxim Shishmarev Date: Thu, 12 Sep 2019 17:25:05 +1000 Subject: [PATCH] Shorten pubkeys in quotations too --- ts/components/conversation/Message.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index e3d4583d1..929f29cd2 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -590,6 +590,10 @@ export class Message extends React.PureComponent { const quoteColor = direction === 'incoming' ? authorColor : quote.authorColor; + const shortenedPubkey = `(...${quote.authorPhoneNumber.substring( + quote.authorPhoneNumber.length - 6 + )})`; + return ( { text={quote.text} attachment={quote.attachment} isIncoming={direction === 'incoming'} - authorPhoneNumber={quote.authorPhoneNumber} + authorPhoneNumber={shortenedPubkey} authorProfileName={quote.authorProfileName} authorName={quote.authorName} authorColor={quoteColor}