Remove unnecessary props from <ContactName>

This commit is contained in:
Evan Hahn 2021-09-16 11:15:43 -05:00 committed by GitHub
parent 43685d15c6
commit eed7aff925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 57 additions and 423 deletions

View file

@ -642,7 +642,6 @@ export class Message extends React.PureComponent<Props, State> {
contactNameColor,
conversationType,
direction,
i18n,
isSticker,
isTapToView,
isTapToViewExpired,
@ -673,11 +672,7 @@ export class Message extends React.PureComponent<Props, State> {
<ContactName
contactNameColor={contactNameColor}
title={author.title}
phoneNumber={author.phoneNumber}
name={author.name}
profileName={author.profileName}
module={moduleName}
i18n={i18n}
/>
</div>
);
@ -1098,9 +1093,6 @@ export class Message extends React.PureComponent<Props, State> {
text={quote.text}
rawAttachment={quote.rawAttachment}
isIncoming={direction === 'incoming'}
authorPhoneNumber={quote.authorPhoneNumber}
authorProfileName={quote.authorProfileName}
authorName={quote.authorName}
authorTitle={quote.authorTitle}
bodyRanges={quote.bodyRanges}
conversationColor={conversationColor}