diff --git a/ts/components/conversation/ConversationHero.tsx b/ts/components/conversation/ConversationHero.tsx
index 531be838c1..014e920ac5 100644
--- a/ts/components/conversation/ConversationHero.tsx
+++ b/ts/components/conversation/ConversationHero.tsx
@@ -192,17 +192,7 @@ export const ConversationHero = ({
title={title}
/>
- {isMe ? (
- i18n('noteToSelf')
- ) : (
-
- )}
+ {isMe ? i18n('noteToSelf') : }
{about && !isMe && (
diff --git a/ts/components/conversation/GroupNotification.stories.tsx b/ts/components/conversation/GroupNotification.stories.tsx
index a07fcfea5b..cb09455480 100644
--- a/ts/components/conversation/GroupNotification.stories.tsx
+++ b/ts/components/conversation/GroupNotification.stories.tsx
@@ -1,4 +1,4 @@
-// Copyright 2020 Signal Messenger, LLC
+// Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
@@ -23,7 +23,6 @@ const stories: Array
= [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -33,11 +32,9 @@ const stories: Array = [
{
title: 'Mrs. Ice',
phoneNumber: '(202) 555-1001',
- profileName: 'Mrs. Ice',
},
{
phoneNumber: '(202) 555-1002',
- name: 'Ms. Earth',
title: 'Ms. Earth',
},
],
@@ -50,7 +47,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
isMe: true,
},
@@ -61,12 +57,10 @@ const stories: Array = [
{
title: 'Mrs. Ice',
phoneNumber: '(202) 555-1001',
- profileName: 'Mrs. Ice',
},
{
title: 'Ms. Earth',
phoneNumber: '(202) 555-1002',
- name: 'Ms. Earth',
},
],
},
@@ -83,7 +77,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -97,12 +90,10 @@ const stories: Array = [
{
title: 'Mrs. Ice',
phoneNumber: '(202) 555-1001',
- profileName: 'Mrs. Ice',
},
{
title: 'Ms. Earth',
phoneNumber: '(202) 555-1002',
- name: 'Ms. Earth',
},
],
},
@@ -112,7 +103,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -127,12 +117,10 @@ const stories: Array = [
{
title: 'Mrs. Ice',
phoneNumber: '(202) 555-1001',
- profileName: 'Mrs. Ice',
},
{
title: 'Ms. Earth',
phoneNumber: '(202) 555-1002',
- name: 'Ms. Earth',
},
],
},
@@ -142,7 +130,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -152,7 +139,6 @@ const stories: Array = [
{
title: 'Mr. Fire',
phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
},
],
},
@@ -162,7 +148,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
isMe: true,
},
@@ -173,7 +158,6 @@ const stories: Array = [
{
title: 'Mr. Fire',
phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
},
],
},
@@ -183,7 +167,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -193,7 +176,6 @@ const stories: Array = [
{
title: 'Mr. Fire',
phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
isMe: true,
},
],
@@ -204,7 +186,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -214,13 +195,11 @@ const stories: Array = [
{
title: 'Mr. Fire',
phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
isMe: true,
},
{
title: 'Mrs. Ice',
phoneNumber: '(202) 555-1001',
- profileName: 'Mrs. Ice',
},
],
},
@@ -235,7 +214,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -245,17 +223,14 @@ const stories: Array = [
{
title: 'Mr. Fire',
phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
},
{
title: 'Mrs. Ice',
phoneNumber: '(202) 555-1001',
- profileName: 'Mrs. Ice',
},
{
title: 'Ms. Earth',
phoneNumber: '(202) 555-1002',
- name: 'Ms. Earth',
},
],
},
@@ -265,7 +240,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -275,7 +249,6 @@ const stories: Array = [
{
title: 'Mr. Fire',
phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
},
],
},
@@ -285,7 +258,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
isMe: true,
},
@@ -295,7 +267,6 @@ const stories: Array = [
contacts: [
{
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
isMe: true,
},
@@ -312,7 +283,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -326,7 +296,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
isMe: true,
},
@@ -346,7 +315,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -360,7 +328,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
isMe: true,
},
@@ -380,7 +347,6 @@ const stories: Array = [
{
from: {
title: 'Alice',
- name: 'Alice',
phoneNumber: '(202) 555-1000',
},
changes: [
@@ -398,7 +364,6 @@ const stories: Array = [
{
from: {
title: longName,
- name: longName,
phoneNumber: '(202) 555-1000',
},
changes: [
diff --git a/ts/components/conversation/GroupNotification.tsx b/ts/components/conversation/GroupNotification.tsx
index 14fe9b31e7..d7a4ce9457 100644
--- a/ts/components/conversation/GroupNotification.tsx
+++ b/ts/components/conversation/GroupNotification.tsx
@@ -13,8 +13,6 @@ import { missingCaseError } from '../../util/missingCaseError';
type Contact = {
phoneNumber?: string;
- profileName?: string;
- name?: string;
title: string;
isMe?: boolean;
};
@@ -57,13 +55,7 @@ export class GroupNotification extends React.Component {
key={`external-${contact.phoneNumber}`}
className="module-group-notification__contact"
>
-
+
);
})
@@ -144,20 +136,14 @@ export class GroupNotification extends React.Component {
const firstChange: undefined | Change = changes[0];
const isLeftOnly = changes.length === 1 && firstChange?.type === 'remove';
- const fromContact = (
-
- );
-
const fromLabel = from.isMe ? (
) : (
-
+ ]}
+ />
);
let contents: ReactNode;
diff --git a/ts/components/conversation/GroupV1Migration.tsx b/ts/components/conversation/GroupV1Migration.tsx
index 4b135e1103..54f0d9a96b 100644
--- a/ts/components/conversation/GroupV1Migration.tsx
+++ b/ts/components/conversation/GroupV1Migration.tsx
@@ -104,7 +104,7 @@ function renderUsers(
]}
+ components={[]}
/>
);
diff --git a/ts/components/conversation/MandatoryProfileSharingActions.stories.tsx b/ts/components/conversation/MandatoryProfileSharingActions.stories.tsx
index c126c32104..3917a55588 100644
--- a/ts/components/conversation/MandatoryProfileSharingActions.stories.tsx
+++ b/ts/components/conversation/MandatoryProfileSharingActions.stories.tsx
@@ -24,9 +24,6 @@ const getBaseProps = (
title: isGroup
? text('title', 'NYC Rock Climbers')
: text('title', 'Cayce Bollard'),
- name: isGroup
- ? text('name', 'NYC Rock Climbers')
- : text('name', 'Cayce Bollard'),
onBlock: action('block'),
onBlockAndReportSpam: action('onBlockAndReportSpam'),
onDelete: action('delete'),
diff --git a/ts/components/conversation/MandatoryProfileSharingActions.tsx b/ts/components/conversation/MandatoryProfileSharingActions.tsx
index a4ac9a2001..9606c21e29 100644
--- a/ts/components/conversation/MandatoryProfileSharingActions.tsx
+++ b/ts/components/conversation/MandatoryProfileSharingActions.tsx
@@ -16,7 +16,7 @@ export type Props = {
i18n: LocalizerType;
firstName?: string;
onAccept(): unknown;
-} & Omit &
+} & Omit &
Pick<
MessageRequestActionsConfirmationProps,
'conversationType' | 'onBlock' | 'onBlockAndReportSpam' | 'onDelete'
@@ -26,13 +26,10 @@ export const MandatoryProfileSharingActions = ({
conversationType,
firstName,
i18n,
- name,
onAccept,
onBlock,
onBlockAndReportSpam,
onDelete,
- phoneNumber,
- profileName,
title,
}: Props): JSX.Element => {
const [mrState, setMrState] = React.useState(MessageRequestState.default);
@@ -50,9 +47,6 @@ export const MandatoryProfileSharingActions = ({
);
}}
onDelete={onDelete}
- name={name}
- profileName={profileName}
- phoneNumber={phoneNumber}
title={title}
conversationType={conversationType}
state={mrState}
@@ -71,11 +65,9 @@ export const MandatoryProfileSharingActions = ({
className="module-message-request-actions__message__name"
>
),
diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx
index d14a8092b7..b3266599ca 100644
--- a/ts/components/conversation/Message.tsx
+++ b/ts/components/conversation/Message.tsx
@@ -642,7 +642,6 @@ export class Message extends React.PureComponent {
contactNameColor,
conversationType,
direction,
- i18n,
isSticker,
isTapToView,
isTapToViewExpired,
@@ -673,11 +672,7 @@ export class Message extends React.PureComponent {
);
@@ -1098,9 +1093,6 @@ export class Message extends React.PureComponent
{
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}
diff --git a/ts/components/conversation/MessageDetail.tsx b/ts/components/conversation/MessageDetail.tsx
index 4b75a35224..55f7c98e4f 100644
--- a/ts/components/conversation/MessageDetail.tsx
+++ b/ts/components/conversation/MessageDetail.tsx
@@ -168,13 +168,7 @@ export class MessageDetail extends React.Component {
{this.renderAvatar(contact)}
-
+
{errors.map(error => (
({
title: isGroup
? text('title', 'NYC Rock Climbers')
: text('title', 'Cayce Bollard'),
- name: isGroup
- ? text('name', 'NYC Rock Climbers')
- : text('name', 'Cayce Bollard'),
onBlock: action('block'),
onDelete: action('delete'),
onBlockAndReportSpam: action('blockAndReportSpam'),
diff --git a/ts/components/conversation/MessageRequestActions.tsx b/ts/components/conversation/MessageRequestActions.tsx
index 6e0e9c4559..a9963e98c6 100644
--- a/ts/components/conversation/MessageRequestActions.tsx
+++ b/ts/components/conversation/MessageRequestActions.tsx
@@ -14,9 +14,8 @@ import { LocalizerType } from '../../types/Util';
export type Props = {
i18n: LocalizerType;
- firstName?: string;
onAccept(): unknown;
-} & Omit
&
+} & Omit &
Omit<
MessageRequestActionsConfirmationProps,
'i18n' | 'state' | 'onChangeState'
@@ -27,14 +26,11 @@ export const MessageRequestActions = ({
firstName,
i18n,
isBlocked,
- name,
onAccept,
onBlock,
onBlockAndReportSpam,
onDelete,
onUnblock,
- phoneNumber,
- profileName,
title,
}: Props): JSX.Element => {
const [mrState, setMrState] = React.useState(MessageRequestState.default);
@@ -48,9 +44,6 @@ export const MessageRequestActions = ({
onBlockAndReportSpam={onBlockAndReportSpam}
onUnblock={onUnblock}
onDelete={onDelete}
- name={name}
- profileName={profileName}
- phoneNumber={phoneNumber}
title={title}
conversationType={conversationType}
state={mrState}
@@ -70,11 +63,9 @@ export const MessageRequestActions = ({
className="module-message-request-actions__message__name"
>
,
]}
diff --git a/ts/components/conversation/MessageRequestActionsConfirmation.tsx b/ts/components/conversation/MessageRequestActionsConfirmation.tsx
index 5347734cd0..e0104779e0 100644
--- a/ts/components/conversation/MessageRequestActionsConfirmation.tsx
+++ b/ts/components/conversation/MessageRequestActionsConfirmation.tsx
@@ -24,19 +24,16 @@ export type Props = {
onDelete(): unknown;
state: MessageRequestState;
onChangeState(state: MessageRequestState): unknown;
-} & Omit;
+} & Omit;
export const MessageRequestActionsConfirmation = ({
conversationType,
i18n,
- name,
onBlock,
onBlockAndReportSpam,
onChangeState,
onDelete,
onUnblock,
- phoneNumber,
- profileName,
state,
title,
}: Props): JSX.Element | null => {
@@ -51,16 +48,7 @@ export const MessageRequestActionsConfirmation = ({
,
- ]}
+ components={[]}
/>
}
actions={[
@@ -96,16 +84,7 @@ export const MessageRequestActionsConfirmation = ({
,
- ]}
+ components={[]}
/>
}
actions={[
@@ -132,16 +111,7 @@ export const MessageRequestActionsConfirmation = ({
,
- ]}
+ components={[]}
/>
}
actions={[
diff --git a/ts/components/conversation/Quote.stories.tsx b/ts/components/conversation/Quote.stories.tsx
index 4828434e1b..4ca2df5961 100644
--- a/ts/components/conversation/Quote.stories.tsx
+++ b/ts/components/conversation/Quote.stories.tsx
@@ -89,9 +89,6 @@ const defaultMessageProps: MessagesProps = {
};
const renderInMessage = ({
- authorName,
- authorPhoneNumber,
- authorProfileName,
authorTitle,
conversationColor,
isFromMe,
@@ -105,9 +102,6 @@ const renderInMessage = ({
conversationColor,
quote: {
authorId: 'an-author',
- authorName,
- authorPhoneNumber,
- authorProfileName,
authorTitle,
conversationColor,
isFromMe,
@@ -129,15 +123,6 @@ const renderInMessage = ({
};
const createProps = (overrideProps: Partial = {}): Props => ({
- authorName: text('authorName', overrideProps.authorName || ''),
- authorPhoneNumber: text(
- 'authorPhoneNumber',
- overrideProps.authorPhoneNumber || ''
- ),
- authorProfileName: text(
- 'authorProfileName',
- overrideProps.authorProfileName || ''
- ),
authorTitle: text('authorTitle', overrideProps.authorTitle || ''),
conversationColor: overrideProps.conversationColor || 'forest',
doubleCheckMissingQuoteReference:
diff --git a/ts/components/conversation/Quote.tsx b/ts/components/conversation/Quote.tsx
index 8cd77f19a1..f824813195 100644
--- a/ts/components/conversation/Quote.tsx
+++ b/ts/components/conversation/Quote.tsx
@@ -17,9 +17,6 @@ import { getCustomColorStyle } from '../../util/getCustomColorStyle';
export type Props = {
authorTitle: string;
- authorPhoneNumber?: string;
- authorProfileName?: string;
- authorName?: string;
conversationColor: ConversationColorType;
customColor?: CustomColorType;
bodyRanges?: BodyRangesType;
@@ -372,15 +369,7 @@ export class Quote extends React.Component {
}
public renderAuthor(): JSX.Element {
- const {
- authorProfileName,
- authorPhoneNumber,
- authorTitle,
- authorName,
- i18n,
- isFromMe,
- isIncoming,
- } = this.props;
+ const { authorTitle, i18n, isFromMe, isIncoming } = this.props;
return (
{
isIncoming ? 'module-quote__primary__author--incoming' : null
)}
>
- {isFromMe ? (
- i18n('you')
- ) : (
-
- )}
+ {isFromMe ? i18n('you') : }
);
}
diff --git a/ts/components/conversation/ReactionViewer.tsx b/ts/components/conversation/ReactionViewer.tsx
index 81cb375b77..db38a327fc 100644
--- a/ts/components/conversation/ReactionViewer.tsx
+++ b/ts/components/conversation/ReactionViewer.tsx
@@ -233,11 +233,7 @@ export const ReactionViewer = React.forwardRef(
) : (
)}
diff --git a/ts/components/conversation/RemoveGroupMemberConfirmationDialog.tsx b/ts/components/conversation/RemoveGroupMemberConfirmationDialog.tsx
index d6ee8597b4..83ba5c7cbe 100644
--- a/ts/components/conversation/RemoveGroupMemberConfirmationDialog.tsx
+++ b/ts/components/conversation/RemoveGroupMemberConfirmationDialog.tsx
@@ -38,13 +38,7 @@ export const RemoveGroupMemberConfirmationDialog: FunctionComponent
=
i18n={i18n}
id="RemoveGroupMemberConfirmation__description"
components={{
- name: (
-
- ),
+ name: ,
}}
/>
}
diff --git a/ts/components/conversation/SafetyNumberNotification.tsx b/ts/components/conversation/SafetyNumberNotification.tsx
index c190c14a52..a8f17c50dd 100644
--- a/ts/components/conversation/SafetyNumberNotification.tsx
+++ b/ts/components/conversation/SafetyNumberNotification.tsx
@@ -11,10 +11,7 @@ import { LocalizerType } from '../../types/Util';
export type ContactType = {
id: string;
- phoneNumber?: string;
- profileName?: string;
title: string;
- name?: string;
};
export type PropsData = {
@@ -54,12 +51,8 @@ export const SafetyNumberNotification = ({
className="module-safety-number-notification__contact"
>
,
]}
diff --git a/ts/components/conversation/Timeline.stories.tsx b/ts/components/conversation/Timeline.stories.tsx
index 1bf59c6e00..1ffefe6ea1 100644
--- a/ts/components/conversation/Timeline.stories.tsx
+++ b/ts/components/conversation/Timeline.stories.tsx
@@ -124,7 +124,6 @@ const items: Record = {
data: {
disabled: false,
expireTimer: moment.duration(2, 'hours').asSeconds(),
- phoneNumber: '(202) 555-0000',
title: '(202) 555-0000',
type: 'fromOther',
},
@@ -134,8 +133,6 @@ const items: Record = {
data: {
contact: {
id: '+1202555000',
- phoneNumber: '(202) 555-0000',
- profileName: 'Mr. Fire',
title: 'Mr. Fire',
},
isGroup: true,
@@ -144,11 +141,7 @@ const items: Record = {
'id-7': {
type: 'verificationNotification',
data: {
- contact: {
- name: 'Mrs. Ice',
- phoneNumber: '(202) 555-0001',
- title: 'Mrs. Ice',
- },
+ contact: { title: 'Mrs. Ice' },
isLocal: true,
type: 'markVerified',
},
@@ -166,12 +159,10 @@ const items: Record = {
contacts: [
{
phoneNumber: '(202) 555-0002',
- profileName: 'Mr. Fire',
title: 'Mr. Fire',
},
{
phoneNumber: '(202) 555-0003',
- profileName: 'Ms. Water',
title: 'Ms. Water',
},
],
@@ -179,7 +170,6 @@ const items: Record = {
],
from: {
phoneNumber: '(202) 555-0001',
- name: 'Mrs. Ice',
title: 'Mrs. Ice',
isMe: false,
},
diff --git a/ts/components/conversation/TimerNotification.stories.tsx b/ts/components/conversation/TimerNotification.stories.tsx
index 680f66930d..271615ae8f 100644
--- a/ts/components/conversation/TimerNotification.stories.tsx
+++ b/ts/components/conversation/TimerNotification.stories.tsx
@@ -25,12 +25,7 @@ const createProps = (overrideProps: Partial = {}): Props => ({
},
overrideProps.type || 'fromOther'
),
- phoneNumber:
- text('phoneNumber', overrideProps.phoneNumber || '') || undefined,
- profileName:
- text('profileName', overrideProps.profileName || '') || undefined,
title: text('title', overrideProps.title || ''),
- name: text('name', overrideProps.name || '') || undefined,
...(boolean('disabled', overrideProps.disabled || false)
? {
disabled: true,
@@ -48,8 +43,6 @@ story.add('Set By Other', () => {
const props = createProps({
expireTimer: moment.duration(1, 'hour').asSeconds(),
type: 'fromOther',
- phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
title: 'Mr. Fire',
});
@@ -68,8 +61,6 @@ story.add('Set By Other (with a long name)', () => {
const props = createProps({
expireTimer: moment.duration(1, 'hour').asSeconds(),
type: 'fromOther',
- phoneNumber: '(202) 555-1000',
- profileName: longName,
title: longName,
});
@@ -86,8 +77,6 @@ story.add('Set By You', () => {
const props = createProps({
expireTimer: moment.duration(1, 'hour').asSeconds(),
type: 'fromMe',
- phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
title: 'Mr. Fire',
});
@@ -104,8 +93,6 @@ story.add('Set By Sync', () => {
const props = createProps({
expireTimer: moment.duration(1, 'hour').asSeconds(),
type: 'fromSync',
- phoneNumber: '(202) 555-1000',
- profileName: 'Mr. Fire',
title: 'Mr. Fire',
});
diff --git a/ts/components/conversation/TimerNotification.tsx b/ts/components/conversation/TimerNotification.tsx
index ddac4dd910..a0e01e2f14 100644
--- a/ts/components/conversation/TimerNotification.tsx
+++ b/ts/components/conversation/TimerNotification.tsx
@@ -20,10 +20,7 @@ export type TimerNotificationType =
/* eslint-disable react/destructuring-assignment */
export type PropsData = {
type: TimerNotificationType;
- phoneNumber?: string;
- profileName?: string;
title: string;
- name?: string;
} & (
| { disabled: true }
| {
@@ -39,7 +36,7 @@ type PropsHousekeeping = {
export type Props = PropsData & PropsHousekeeping;
export const TimerNotification: FunctionComponent = props => {
- const { disabled, i18n, name, phoneNumber, profileName, title, type } = props;
+ const { disabled, i18n, title, type } = props;
let changeKey: string;
let timespan: string;
@@ -59,16 +56,7 @@ export const TimerNotification: FunctionComponent = props => {
i18n={i18n}
id={changeKey}
components={{
- name: (
-
- ),
+ name: ,
time: timespan,
}}
/>
diff --git a/ts/components/conversation/UnsupportedMessage.tsx b/ts/components/conversation/UnsupportedMessage.tsx
index 2910ac2ec9..7544126998 100644
--- a/ts/components/conversation/UnsupportedMessage.tsx
+++ b/ts/components/conversation/UnsupportedMessage.tsx
@@ -62,12 +62,8 @@ export const UnsupportedMessage = ({
className="module-unsupported-message__contact"
>
,
]}
diff --git a/ts/components/conversation/VerificationNotification.stories.tsx b/ts/components/conversation/VerificationNotification.stories.tsx
index f8c028cfd8..ff63d07763 100644
--- a/ts/components/conversation/VerificationNotification.stories.tsx
+++ b/ts/components/conversation/VerificationNotification.stories.tsx
@@ -1,4 +1,4 @@
-// Copyright 2020 Signal Messenger, LLC
+// Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
@@ -16,11 +16,7 @@ const story = storiesOf(
module
);
-const contact = {
- title: 'Mr. Fire',
- phoneNumber: '(202) 555-0003',
- profileName: 'Mr. Fire',
-};
+const contact = { title: 'Mr. Fire' };
const createProps = (overrideProps: Partial = {}): Props => ({
i18n,
@@ -58,11 +54,7 @@ story.add('Long name', () => {
const props = createProps({
type: 'markVerified',
- contact: {
- ...contact,
- profileName: longName,
- title: longName,
- },
+ contact: { title: longName },
});
return ;
diff --git a/ts/components/conversation/VerificationNotification.tsx b/ts/components/conversation/VerificationNotification.tsx
index b70d8169ac..2204183ec3 100644
--- a/ts/components/conversation/VerificationNotification.tsx
+++ b/ts/components/conversation/VerificationNotification.tsx
@@ -10,12 +10,7 @@ import { LocalizerType } from '../../types/Util';
import { missingCaseError } from '../../util/missingCaseError';
-type Contact = {
- phoneNumber?: string;
- profileName?: string;
- name?: string;
- title: string;
-};
+type Contact = { title: string };
export type PropsData = {
type: 'markVerified' | 'markNotVerified';
@@ -57,12 +52,8 @@ export class VerificationNotification extends React.Component {
components={[
,
]}
i18n={i18n}
diff --git a/ts/components/conversation/conversation-details/AddGroupMembersModal/ConfirmAdditionsModal.tsx b/ts/components/conversation/conversation-details/AddGroupMembersModal/ConfirmAdditionsModal.tsx
index b4175f67f6..2017a455a1 100644
--- a/ts/components/conversation/conversation-details/AddGroupMembersModal/ConfirmAdditionsModal.tsx
+++ b/ts/components/conversation/conversation-details/AddGroupMembersModal/ConfirmAdditionsModal.tsx
@@ -46,13 +46,7 @@ export const ConfirmAdditionsModal: FunctionComponent = ({
i18n={i18n}
id="AddGroupMembersModal--confirm-title--one"
components={{
- person: (
-
- ),
+ person: ,
group: groupTitleNode,
}}
/>
diff --git a/ts/components/conversationList/ContactCheckbox.tsx b/ts/components/conversationList/ContactCheckbox.tsx
index 50255f16de..138d9e6aa9 100644
--- a/ts/components/conversationList/ContactCheckbox.tsx
+++ b/ts/components/conversationList/ContactCheckbox.tsx
@@ -71,13 +71,7 @@ export const ContactCheckbox: FunctionComponent = React.memo(
const headerName = isMe ? (
i18n('noteToSelf')
) : (
-
+
);
let messageText: ReactNode;
diff --git a/ts/components/conversationList/ContactListItem.tsx b/ts/components/conversationList/ContactListItem.tsx
index 65050aabb5..6c0614ee22 100644
--- a/ts/components/conversationList/ContactListItem.tsx
+++ b/ts/components/conversationList/ContactListItem.tsx
@@ -54,13 +54,7 @@ export const ContactListItem: FunctionComponent = React.memo(
const headerName = isMe ? (
i18n('noteToSelf')
) : (
-
+
);
const messageText =
diff --git a/ts/components/conversationList/ConversationListItem.tsx b/ts/components/conversationList/ConversationListItem.tsx
index 2096ed99d2..3b7c16bae0 100644
--- a/ts/components/conversationList/ConversationListItem.tsx
+++ b/ts/components/conversationList/ConversationListItem.tsx
@@ -91,13 +91,7 @@ export const ConversationListItem: FunctionComponent = React.memo(
const headerName = isMe ? (
i18n('noteToSelf')
) : (
-
+
);
let messageText: ReactNode = null;
diff --git a/ts/components/conversationList/MessageSearchResult.tsx b/ts/components/conversationList/MessageSearchResult.tsx
index c322c2ce20..f099ac9d7e 100644
--- a/ts/components/conversationList/MessageSearchResult.tsx
+++ b/ts/components/conversationList/MessageSearchResult.tsx
@@ -62,23 +62,10 @@ const renderPerson = (
i18n: LocalizerType,
person: Readonly<{
isMe?: boolean;
- name?: string;
- phoneNumber?: string;
- profileName?: string;
title: string;
}>
): ReactNode =>
- person.isMe ? (
- i18n('you')
- ) : (
-
- );
+ person.isMe ? i18n('you') : ;
// This function exists because bodyRanges tells us the character position
// where the at-mention starts at according to the full body text. The snippet
diff --git a/ts/state/smart/ContactName.tsx b/ts/state/smart/ContactName.tsx
index 90c17531e9..275b43ba18 100644
--- a/ts/state/smart/ContactName.tsx
+++ b/ts/state/smart/ContactName.tsx
@@ -1,4 +1,4 @@
-// Copyright 2020 Signal Messenger, LLC
+// Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
@@ -33,10 +33,6 @@ export const SmartContactName: React.ComponentType = props => {
return (
);