From ab153b30c855c15d461eae6d48e2147bad071697 Mon Sep 17 00:00:00 2001 From: Alvaro <110414366+alvaro-signal@users.noreply.github.com> Date: Wed, 28 Sep 2022 10:27:52 -0600 Subject: [PATCH] Remove unused name on Avatar --- ts/components/Avatar.stories.tsx | 1 - ts/components/Avatar.tsx | 2 -- ts/components/AvatarPopup.stories.tsx | 1 - ts/components/AvatarPopup.tsx | 1 + ts/components/CallNeedPermissionScreen.tsx | 1 - ts/components/CallScreen.tsx | 2 -- ts/components/CallingPipRemoteVideo.tsx | 2 -- ts/components/CallingPreCallInfo.tsx | 2 -- ts/components/ContactPill.tsx | 3 --- ts/components/ConversationList.stories.tsx | 5 ++--- ts/components/ConversationList.tsx | 1 - ts/components/DirectCallRemoteParticipant.tsx | 3 --- ts/components/IncomingCallBar.tsx | 2 -- ts/components/Lightbox.tsx | 1 - ts/components/MainHeader.tsx | 1 - ts/components/MyStoriesButton.tsx | 3 --- ts/components/SafetyNumberChangeDialog.tsx | 1 - ts/components/StoriesSettingsModal.tsx | 1 - ts/components/StoryDetailsModal.tsx | 2 -- ts/components/StoryListItem.tsx | 3 --- ts/components/StoryViewer.tsx | 3 --- ts/components/StoryViewsNRepliesModal.tsx | 2 -- ts/components/conversation/ContactModal.tsx | 1 - ts/components/conversation/ConversationHeader.tsx | 2 -- ts/components/conversation/ConversationHero.stories.tsx | 4 ---- ts/components/conversation/ConversationHero.tsx | 2 +- ts/components/conversation/Message.tsx | 2 -- ts/components/conversation/MessageDetail.tsx | 3 --- ts/components/conversation/ReactionViewer.tsx | 2 -- ts/components/conversation/Timeline.stories.tsx | 2 -- ts/components/conversation/TypingBubble.tsx | 3 --- .../AddGroupMembersModal/ChooseGroupMembersModal.tsx | 1 - ts/components/conversationList/BaseConversationListItem.tsx | 3 --- ts/components/conversationList/ContactCheckbox.tsx | 3 --- ts/components/conversationList/ContactListItem.tsx | 3 --- ts/components/conversationList/ConversationListItem.tsx | 3 --- ts/components/conversationList/MessageSearchResult.tsx | 3 --- ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx | 1 - 38 files changed, 4 insertions(+), 77 deletions(-) diff --git a/ts/components/Avatar.stories.tsx b/ts/components/Avatar.stories.tsx index 75768d5921..e0f197004b 100644 --- a/ts/components/Avatar.stories.tsx +++ b/ts/components/Avatar.stories.tsx @@ -86,7 +86,6 @@ const createProps = (overrideProps: Partial = {}): Props => ({ i18n, isMe: false, loading: Boolean(overrideProps.loading), - name: overrideProps.name || '', noteToSelf: Boolean(overrideProps.noteToSelf), onClick: action('onClick'), onClickBadge: action('onClickBadge'), diff --git a/ts/components/Avatar.tsx b/ts/components/Avatar.tsx index d04e0b9c9d..12878b425f 100644 --- a/ts/components/Avatar.tsx +++ b/ts/components/Avatar.tsx @@ -56,7 +56,6 @@ export type Props = { acceptedMessageRequest: boolean; conversationType: 'group' | 'direct'; isMe: boolean; - name?: string; noteToSelf?: boolean; phoneNumber?: string; profileName?: string; @@ -302,7 +301,6 @@ export const Avatar: FunctionComponent = ({ aria-label={i18n('contactAvatarAlt', [title])} className={classNames( 'module-Avatar', - hasImage ? 'module-Avatar--with-image' : 'module-Avatar--no-image', Boolean(storyRing) && 'module-Avatar--with-story', storyRing === HasStories.Unread && 'module-Avatar--with-story--unread', className diff --git a/ts/components/AvatarPopup.stories.tsx b/ts/components/AvatarPopup.stories.tsx index 8fb52ca7a3..6f56792c1b 100644 --- a/ts/components/AvatarPopup.stories.tsx +++ b/ts/components/AvatarPopup.stories.tsx @@ -43,7 +43,6 @@ const useProps = (overrideProps: Partial = {}): Props => ({ hasPendingUpdate: Boolean(overrideProps.hasPendingUpdate), i18n, isMe: true, - name: text('name', overrideProps.name || ''), noteToSelf: boolean('noteToSelf', overrideProps.noteToSelf || false), onEditProfile: action('onEditProfile'), onViewArchive: action('onViewArchive'), diff --git a/ts/components/AvatarPopup.tsx b/ts/components/AvatarPopup.tsx index 9171d6d5e8..7191de2171 100644 --- a/ts/components/AvatarPopup.tsx +++ b/ts/components/AvatarPopup.tsx @@ -25,6 +25,7 @@ export type Props = { // Matches Popper's RefHandler type innerRef?: React.Ref; style: React.CSSProperties; + name?: string; } & Omit; export const AvatarPopup = (props: Props): JSX.Element => { diff --git a/ts/components/CallNeedPermissionScreen.tsx b/ts/components/CallNeedPermissionScreen.tsx index 5b30ff8749..87c5e1754a 100644 --- a/ts/components/CallNeedPermissionScreen.tsx +++ b/ts/components/CallNeedPermissionScreen.tsx @@ -53,7 +53,6 @@ export const CallNeedPermissionScreen: React.FC = ({ conversationType="direct" i18n={i18n} isMe={conversation.isMe} - name={conversation.name} phoneNumber={conversation.phoneNumber} profileName={conversation.profileName} title={conversation.title} diff --git a/ts/components/CallScreen.tsx b/ts/components/CallScreen.tsx index 5074d55ecc..dc0e70b7bd 100644 --- a/ts/components/CallScreen.tsx +++ b/ts/components/CallScreen.tsx @@ -352,7 +352,6 @@ export const CallScreen: React.FC = ({ conversationType="direct" i18n={i18n} isMe - name={me.name} phoneNumber={me.phoneNumber} profileName={me.profileName} title={me.title} @@ -390,7 +389,6 @@ export const CallScreen: React.FC = ({ conversationType="direct" i18n={i18n} isMe - name={me.name} phoneNumber={me.phoneNumber} profileName={me.profileName} title={me.title} diff --git a/ts/components/CallingPipRemoteVideo.tsx b/ts/components/CallingPipRemoteVideo.tsx index a010eb4be2..b377b86a86 100644 --- a/ts/components/CallingPipRemoteVideo.tsx +++ b/ts/components/CallingPipRemoteVideo.tsx @@ -39,7 +39,6 @@ const NoVideo = ({ avatarPath, color, isMe, - name, phoneNumber, profileName, sharedGroupNames, @@ -59,7 +58,6 @@ const NoVideo = ({ conversationType="direct" i18n={i18n} isMe={isMe} - name={name} phoneNumber={phoneNumber} profileName={profileName} title={title} diff --git a/ts/components/CallingPreCallInfo.tsx b/ts/components/CallingPreCallInfo.tsx index 30c69e5626..8bcf28fbb2 100644 --- a/ts/components/CallingPreCallInfo.tsx +++ b/ts/components/CallingPreCallInfo.tsx @@ -23,7 +23,6 @@ type PropsType = { | 'avatarPath' | 'color' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -169,7 +168,6 @@ export const CallingPreCallInfo: FunctionComponent = ({ acceptedMessageRequest={conversation.acceptedMessageRequest} conversationType={conversation.type} isMe={conversation.isMe} - name={conversation.name} noteToSelf={false} phoneNumber={conversation.phoneNumber} profileName={conversation.profileName} diff --git a/ts/components/ContactPill.tsx b/ts/components/ContactPill.tsx index 89d98b6105..6a0449cf90 100644 --- a/ts/components/ContactPill.tsx +++ b/ts/components/ContactPill.tsx @@ -21,7 +21,6 @@ export type PropsType = { | 'firstName' | 'id' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -37,7 +36,6 @@ export const ContactPill: FunctionComponent = ({ i18n, isMe, id, - name, phoneNumber, profileName, sharedGroupNames, @@ -58,7 +56,6 @@ export const ContactPill: FunctionComponent = ({ conversationType="direct" i18n={i18n} isMe={isMe} - name={name} phoneNumber={phoneNumber} profileName={profileName} title={title} diff --git a/ts/components/ConversationList.stories.tsx b/ts/components/ConversationList.stories.tsx index 1e0cbb58cb..d82c3d96d6 100644 --- a/ts/components/ConversationList.stories.tsx +++ b/ts/components/ConversationList.stories.tsx @@ -259,7 +259,7 @@ const createConversation = ( id: overrideProps.id || '', isSelected: boolean('isSelected', overrideProps.isSelected || false), title: text('title', overrideProps.title || 'Some Person'), - name: overrideProps.name || 'Some Person', + profileName: overrideProps.profileName || 'Some Person', type: overrideProps.type || 'direct', markedUnread: boolean('markedUnread', overrideProps.markedUnread || false), lastMessage: overrideProps.lastMessage || { @@ -313,7 +313,7 @@ export const ConversationWithYourself = (): JSX.Element => status: 'read', deletedForEveryone: false, }, - name: 'Myself', + profileName: 'Myself', title: 'Myself', isMe: true, }); @@ -451,7 +451,6 @@ export const ConversationLongName = (): JSX.Element => { 'Long contact name. Esquire. The third. And stuff. And more! And more!'; return renderConversation({ - name, title: name, }); }; diff --git a/ts/components/ConversationList.tsx b/ts/components/ConversationList.tsx index 7b49c55207..e7905935e1 100644 --- a/ts/components/ConversationList.tsx +++ b/ts/components/ConversationList.tsx @@ -338,7 +338,6 @@ export const ConversationList: React.FC = ({ 'lastUpdated', 'markedUnread', 'muteExpiresAt', - 'name', 'phoneNumber', 'profileName', 'sharedGroupNames', diff --git a/ts/components/DirectCallRemoteParticipant.tsx b/ts/components/DirectCallRemoteParticipant.tsx index 6404606d34..01eeba6de8 100644 --- a/ts/components/DirectCallRemoteParticipant.tsx +++ b/ts/components/DirectCallRemoteParticipant.tsx @@ -47,7 +47,6 @@ function renderAvatar( avatarPath, color, isMe, - name, phoneNumber, profileName, sharedGroupNames, @@ -58,7 +57,6 @@ function renderAvatar( | 'avatarPath' | 'color' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -76,7 +74,6 @@ function renderAvatar( conversationType="direct" i18n={i18n} isMe={isMe} - name={name} phoneNumber={phoneNumber} profileName={profileName} title={title} diff --git a/ts/components/IncomingCallBar.tsx b/ts/components/IncomingCallBar.tsx index 75c2377beb..6832c6c241 100644 --- a/ts/components/IncomingCallBar.tsx +++ b/ts/components/IncomingCallBar.tsx @@ -173,7 +173,6 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => { avatarPath, color, isMe, - name, phoneNumber, profileName, sharedGroupNames, @@ -257,7 +256,6 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => { conversationType={conversationType} i18n={i18n} isMe={isMe} - name={name} phoneNumber={phoneNumber} profileName={profileName} title={title} diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx index 974d9b7660..e01e1124ff 100644 --- a/ts/components/Lightbox.tsx +++ b/ts/components/Lightbox.tsx @@ -691,7 +691,6 @@ function LightboxHeader({ conversationType={conversation.type} i18n={i18n} isMe={conversation.isMe} - name={conversation.name} phoneNumber={conversation.e164} profileName={conversation.profileName} sharedGroupNames={conversation.sharedGroupNames} diff --git a/ts/components/MainHeader.tsx b/ts/components/MainHeader.tsx index 46254a8208..a4e9749d11 100644 --- a/ts/components/MainHeader.tsx +++ b/ts/components/MainHeader.tsx @@ -168,7 +168,6 @@ export class MainHeader extends React.Component { conversationType="direct" i18n={i18n} isMe - name={name} phoneNumber={phoneNumber} profileName={profileName} theme={theme} diff --git a/ts/components/MyStoriesButton.tsx b/ts/components/MyStoriesButton.tsx index b608deaf5d..4b3d4fecc8 100644 --- a/ts/components/MyStoriesButton.tsx +++ b/ts/components/MyStoriesButton.tsx @@ -41,7 +41,6 @@ export const MyStoriesButton = ({ avatarPath, color, isMe, - name, profileName, sharedGroupNames, title, @@ -64,7 +63,6 @@ export const MyStoriesButton = ({ conversationType="direct" i18n={i18n} isMe={Boolean(isMe)} - name={name} profileName={profileName} sharedGroupNames={sharedGroupNames} size={AvatarSize.FORTY_EIGHT} @@ -106,7 +104,6 @@ export const MyStoriesButton = ({ conversationType="direct" i18n={i18n} isMe={Boolean(isMe)} - name={name} profileName={profileName} sharedGroupNames={sharedGroupNames} size={AvatarSize.FORTY_EIGHT} diff --git a/ts/components/SafetyNumberChangeDialog.tsx b/ts/components/SafetyNumberChangeDialog.tsx index df194c7f4f..f1e04a1100 100644 --- a/ts/components/SafetyNumberChangeDialog.tsx +++ b/ts/components/SafetyNumberChangeDialog.tsx @@ -112,7 +112,6 @@ export const SafetyNumberChangeDialog = ({ conversationType="direct" i18n={i18n} isMe={contact.isMe} - name={contact.name} phoneNumber={contact.phoneNumber} profileName={contact.profileName} theme={theme} diff --git a/ts/components/StoriesSettingsModal.tsx b/ts/components/StoriesSettingsModal.tsx index fd0251ea7d..b027a26830 100644 --- a/ts/components/StoriesSettingsModal.tsx +++ b/ts/components/StoriesSettingsModal.tsx @@ -823,7 +823,6 @@ export const EditDistributionList = ({ i18n={i18n} id={contact.id} isMe={contact.isMe} - name={contact.name} phoneNumber={contact.phoneNumber} profileName={contact.profileName} sharedGroupNames={contact.sharedGroupNames} diff --git a/ts/components/StoryDetailsModal.tsx b/ts/components/StoryDetailsModal.tsx index ac291f7d17..4ef2544b95 100644 --- a/ts/components/StoryDetailsModal.tsx +++ b/ts/components/StoryDetailsModal.tsx @@ -122,7 +122,6 @@ export const StoryDetailsModal = ({ conversationType="direct" i18n={i18n} isMe={contact.isMe} - name={contact.profileName} phoneNumber={contact.phoneNumber} profileName={contact.profileName} sharedGroupNames={contact.sharedGroupNames} @@ -166,7 +165,6 @@ export const StoryDetailsModal = ({ conversationType="direct" i18n={i18n} isMe={sender.isMe} - name={sender.profileName} profileName={sender.profileName} sharedGroupNames={sender.sharedGroupNames} size={AvatarSize.THIRTY_SIX} diff --git a/ts/components/StoryListItem.tsx b/ts/components/StoryListItem.tsx index 34006855bf..39bce77372 100644 --- a/ts/components/StoryListItem.tsx +++ b/ts/components/StoryListItem.tsx @@ -37,7 +37,6 @@ function StoryListItemAvatar({ getPreferredBadge, i18n, isMe, - name, profileName, sharedGroupNames, title, @@ -46,7 +45,6 @@ function StoryListItemAvatar({ | 'acceptedMessageRequest' | 'avatarPath' | 'color' - | 'name' | 'profileName' | 'sharedGroupNames' | 'title' @@ -66,7 +64,6 @@ function StoryListItemAvatar({ conversationType="direct" i18n={i18n} isMe={Boolean(isMe)} - name={name} profileName={profileName} sharedGroupNames={sharedGroupNames} size={AvatarSize.FORTY_EIGHT} diff --git a/ts/components/StoryViewer.tsx b/ts/components/StoryViewer.tsx index 6d15c80d78..6b8e9b7c87 100644 --- a/ts/components/StoryViewer.tsx +++ b/ts/components/StoryViewer.tsx @@ -152,7 +152,6 @@ export const StoryViewer = ({ color, isMe, firstName, - name, profileName, sharedGroupNames, title, @@ -614,7 +613,6 @@ export const StoryViewer = ({ conversationType="direct" i18n={i18n} isMe={Boolean(isMe)} - name={name} profileName={profileName} sharedGroupNames={sharedGroupNames} size={AvatarSize.TWENTY_EIGHT} @@ -630,7 +628,6 @@ export const StoryViewer = ({ conversationType="group" i18n={i18n} isMe={false} - name={group.name} profileName={group.profileName} sharedGroupNames={group.sharedGroupNames} size={AvatarSize.TWENTY_EIGHT} diff --git a/ts/components/StoryViewsNRepliesModal.tsx b/ts/components/StoryViewsNRepliesModal.tsx index 55b129a4f6..8f90294b21 100644 --- a/ts/components/StoryViewsNRepliesModal.tsx +++ b/ts/components/StoryViewsNRepliesModal.tsx @@ -287,7 +287,6 @@ export const StoryViewsNRepliesModal = ({ conversationType="direct" i18n={i18n} isMe={Boolean(reply.author.isMe)} - name={reply.author.name} profileName={reply.author.profileName} sharedGroupNames={reply.author.sharedGroupNames || []} size={AvatarSize.TWENTY_EIGHT} @@ -384,7 +383,6 @@ export const StoryViewsNRepliesModal = ({ conversationType="direct" i18n={i18n} isMe={Boolean(view.recipient.isMe)} - name={view.recipient.name} profileName={view.recipient.profileName} sharedGroupNames={view.recipient.sharedGroupNames || []} size={AvatarSize.TWENTY_EIGHT} diff --git a/ts/components/conversation/ContactModal.tsx b/ts/components/conversation/ContactModal.tsx index baf0d07f66..827df068f4 100644 --- a/ts/components/conversation/ContactModal.tsx +++ b/ts/components/conversation/ContactModal.tsx @@ -182,7 +182,6 @@ export const ContactModal = ({ conversationType="direct" i18n={i18n} isMe={contact.isMe} - name={contact.name} onClick={() => { if (conversation && hasStories) { viewUserStories({ diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx index 40404bf9b9..e6c2ec9954 100644 --- a/ts/components/conversation/ConversationHeader.tsx +++ b/ts/components/conversation/ConversationHeader.tsx @@ -209,7 +209,6 @@ export class ConversationHeader extends React.Component { i18n, type, isMe, - name, phoneNumber, profileName, sharedGroupNames, @@ -229,7 +228,6 @@ export class ConversationHeader extends React.Component { conversationType={type} i18n={i18n} isMe={isMe} - name={name} noteToSelf={isMe} onClick={ hasStories diff --git a/ts/components/conversation/ConversationHero.stories.tsx b/ts/components/conversation/ConversationHero.stories.tsx index 43cefd78fd..1f0e7fa1c6 100644 --- a/ts/components/conversation/ConversationHero.stories.tsx +++ b/ts/components/conversation/ConversationHero.stories.tsx @@ -102,7 +102,6 @@ DirectNoGroupsJustProfile.story = { export const DirectNoGroupsJustPhoneNumber = Template.bind({}); DirectNoGroupsJustPhoneNumber.args = { - name: '', phoneNumber: casual.phone, profileName: '', title: '', @@ -114,7 +113,6 @@ DirectNoGroupsJustPhoneNumber.story = { export const DirectNoGroupsNoData = Template.bind({}); DirectNoGroupsNoData.args = { avatarPath: undefined, - name: '', phoneNumber: '', profileName: '', title: '', @@ -127,7 +125,6 @@ export const DirectNoGroupsNoDataNotAccepted = Template.bind({}); DirectNoGroupsNoDataNotAccepted.args = { acceptedMessageRequest: false, avatarPath: undefined, - name: '', phoneNumber: '', profileName: '', title: '', @@ -187,7 +184,6 @@ export const GroupNoName = Template.bind({}); GroupNoName.args = { conversationType: 'group', membersCount: 0, - name: '', title: '', }; GroupNoName.story = { diff --git a/ts/components/conversation/ConversationHero.tsx b/ts/components/conversation/ConversationHero.tsx index 0f60b9078a..42d8d53e67 100644 --- a/ts/components/conversation/ConversationHero.tsx +++ b/ts/components/conversation/ConversationHero.tsx @@ -26,6 +26,7 @@ export type Props = { i18n: LocalizerType; isMe: boolean; membersCount?: number; + name?: string; phoneNumber?: string; sharedGroupNames?: Array; unblurAvatar: () => void; @@ -173,7 +174,6 @@ export const ConversationHero = ({ conversationType={conversationType} i18n={i18n} isMe={isMe} - name={name} noteToSelf={isMe} onClick={avatarOnClick} profileName={profileName} diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index 4a825dc16a..f53c04747e 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -221,7 +221,6 @@ export type PropsData = { | 'color' | 'id' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -1715,7 +1714,6 @@ export class Message extends React.PureComponent { conversationType="direct" i18n={i18n} isMe={author.isMe} - name={author.name} onClick={event => { event.stopPropagation(); event.preventDefault(); diff --git a/ts/components/conversation/MessageDetail.tsx b/ts/components/conversation/MessageDetail.tsx index c7fbaceefb..2c30c488ba 100644 --- a/ts/components/conversation/MessageDetail.tsx +++ b/ts/components/conversation/MessageDetail.tsx @@ -34,7 +34,6 @@ export type Contact = Pick< | 'color' | 'id' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -138,7 +137,6 @@ export class MessageDetail extends React.Component { badges, color, isMe, - name, phoneNumber, profileName, sharedGroupNames, @@ -155,7 +153,6 @@ export class MessageDetail extends React.Component { conversationType="direct" i18n={i18n} isMe={isMe} - name={name} phoneNumber={phoneNumber} profileName={profileName} theme={theme} diff --git a/ts/components/conversation/ReactionViewer.tsx b/ts/components/conversation/ReactionViewer.tsx index fe3d4729c1..4c1071cbe7 100644 --- a/ts/components/conversation/ReactionViewer.tsx +++ b/ts/components/conversation/ReactionViewer.tsx @@ -27,7 +27,6 @@ export type Reaction = { | 'color' | 'id' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -234,7 +233,6 @@ export const ReactionViewer = React.forwardRef( size={32} isMe={from.isMe} color={from.color} - name={from.name} profileName={from.profileName} phoneNumber={from.phoneNumber} theme={theme} diff --git a/ts/components/conversation/Timeline.stories.tsx b/ts/components/conversation/Timeline.stories.tsx index 8843778a87..3a18ddc54c 100644 --- a/ts/components/conversation/Timeline.stories.tsx +++ b/ts/components/conversation/Timeline.stories.tsx @@ -478,7 +478,6 @@ const renderContactSpoofingReviewDialog = ( const getAbout = () => text('about', '👍 Free to chat'); const getTitle = () => text('name', 'Cayce Bollard'); -const getName = () => text('name', 'Cayce Bollard'); const getProfileName = () => text('profileName', 'Cayce Bollard (profile)'); const getAvatarPath = () => text('avatarPath', '/fixtures/kitten-4-112-112.jpg'); @@ -497,7 +496,6 @@ const renderHeroRow = () => { id={getDefaultConversation().id} i18n={i18n} isMe={false} - name={getName()} phoneNumber={getPhoneNumber()} profileName={getProfileName()} sharedGroupNames={['NYC Rock Climbers', 'Dinner Party']} diff --git a/ts/components/conversation/TypingBubble.tsx b/ts/components/conversation/TypingBubble.tsx index ed15fa82f3..11d27d2bcf 100644 --- a/ts/components/conversation/TypingBubble.tsx +++ b/ts/components/conversation/TypingBubble.tsx @@ -18,7 +18,6 @@ export type Props = Pick< | 'avatarPath' | 'color' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -38,7 +37,6 @@ export function TypingBubble({ conversationType, i18n, isMe, - name, phoneNumber, profileName, sharedGroupNames, @@ -65,7 +63,6 @@ export function TypingBubble({ conversationType="direct" i18n={i18n} isMe={isMe} - name={name} phoneNumber={phoneNumber} profileName={profileName} theme={theme} diff --git a/ts/components/conversation/conversation-details/AddGroupMembersModal/ChooseGroupMembersModal.tsx b/ts/components/conversation/conversation-details/AddGroupMembersModal/ChooseGroupMembersModal.tsx index c3943f21c4..4ba895d0f0 100644 --- a/ts/components/conversation/conversation-details/AddGroupMembersModal/ChooseGroupMembersModal.tsx +++ b/ts/components/conversation/conversation-details/AddGroupMembersModal/ChooseGroupMembersModal.tsx @@ -311,7 +311,6 @@ export const ChooseGroupMembersModal: FunctionComponent = ({ i18n={i18n} isMe={contact.isMe} id={contact.id} - name={contact.name} phoneNumber={contact.phoneNumber} profileName={contact.profileName} sharedGroupNames={contact.sharedGroupNames} diff --git a/ts/components/conversationList/BaseConversationListItem.tsx b/ts/components/conversationList/BaseConversationListItem.tsx index 3ab300a6ff..60fe825390 100644 --- a/ts/components/conversationList/BaseConversationListItem.tsx +++ b/ts/components/conversationList/BaseConversationListItem.tsx @@ -59,7 +59,6 @@ type PropsType = { | 'color' | 'isMe' | 'markedUnread' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -93,7 +92,6 @@ export const BaseConversationListItem: FunctionComponent = messageStatusIcon, messageText, messageTextIsAlwaysFullSize, - name, onClick, phoneNumber, profileName, @@ -165,7 +163,6 @@ export const BaseConversationListItem: FunctionComponent = searchResult={isUsernameSearchResult} i18n={i18n} isMe={isMe} - name={name} phoneNumber={phoneNumber} profileName={profileName} title={title} diff --git a/ts/components/conversationList/ContactCheckbox.tsx b/ts/components/conversationList/ContactCheckbox.tsx index 7c28203b21..efda869b92 100644 --- a/ts/components/conversationList/ContactCheckbox.tsx +++ b/ts/components/conversationList/ContactCheckbox.tsx @@ -32,7 +32,6 @@ export type PropsDataType = { | 'color' | 'id' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -64,7 +63,6 @@ export const ContactCheckbox: FunctionComponent = React.memo( id, isChecked, isMe, - name, onClick, phoneNumber, profileName, @@ -112,7 +110,6 @@ export const ContactCheckbox: FunctionComponent = React.memo( isMe={isMe} isSelected={false} messageText={messageText} - name={name} onClick={onClickItem} phoneNumber={phoneNumber} profileName={profileName} diff --git a/ts/components/conversationList/ContactListItem.tsx b/ts/components/conversationList/ContactListItem.tsx index 6863e5f409..c65146a1dd 100644 --- a/ts/components/conversationList/ContactListItem.tsx +++ b/ts/components/conversationList/ContactListItem.tsx @@ -23,7 +23,6 @@ export type ContactListItemConversationType = Pick< | 'color' | 'id' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -56,7 +55,6 @@ export const ContactListItem: FunctionComponent = React.memo( i18n, id, isMe, - name, onClick, phoneNumber, profileName, @@ -90,7 +88,6 @@ export const ContactListItem: FunctionComponent = React.memo( isMe={isMe} isSelected={false} messageText={messageText} - name={name} onClick={onClick ? () => onClick(id) : undefined} phoneNumber={phoneNumber} profileName={profileName} diff --git a/ts/components/conversationList/ConversationListItem.tsx b/ts/components/conversationList/ConversationListItem.tsx index ec09f35463..083306f399 100644 --- a/ts/components/conversationList/ConversationListItem.tsx +++ b/ts/components/conversationList/ConversationListItem.tsx @@ -49,7 +49,6 @@ export type PropsData = Pick< | 'lastUpdated' | 'markedUnread' | 'muteExpiresAt' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -86,7 +85,6 @@ export const ConversationListItem: FunctionComponent = React.memo( lastUpdated, markedUnread, muteExpiresAt, - name, onClick, phoneNumber, profileName, @@ -185,7 +183,6 @@ export const ConversationListItem: FunctionComponent = React.memo( messageStatusIcon={messageStatusIcon} messageText={messageText} messageTextIsAlwaysFullSize - name={name} onClick={onClickItem} phoneNumber={phoneNumber} profileName={profileName} diff --git a/ts/components/conversationList/MessageSearchResult.tsx b/ts/components/conversationList/MessageSearchResult.tsx index 9a778d93ec..1de30b5077 100644 --- a/ts/components/conversationList/MessageSearchResult.tsx +++ b/ts/components/conversationList/MessageSearchResult.tsx @@ -40,7 +40,6 @@ export type PropsDataType = { | 'badges' | 'color' | 'isMe' - | 'name' | 'phoneNumber' | 'profileName' | 'sharedGroupNames' @@ -53,7 +52,6 @@ export type PropsDataType = { phoneNumber?: string; title: string; isMe?: boolean; - name?: string; profileName?: string; }; }; @@ -200,7 +198,6 @@ export const MessageSearchResult: FunctionComponent = React.memo( isMe={from.isMe} isSelected={false} messageText={messageText} - name={from.name} onClick={onClickItem} phoneNumber={from.phoneNumber} profileName={from.profileName} diff --git a/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx b/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx index 8987be8d04..61ad9d04b8 100644 --- a/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx +++ b/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx @@ -223,7 +223,6 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper