diff --git a/ts/components/conversation/ConversationHeader.stories.tsx b/ts/components/conversation/ConversationHeader.stories.tsx index 8e0bf649fe..f04876f3ae 100644 --- a/ts/components/conversation/ConversationHeader.stories.tsx +++ b/ts/components/conversation/ConversationHeader.stories.tsx @@ -49,7 +49,6 @@ const commonProps = { ), onShowAllMedia: action('onShowAllMedia'), - onShowContactModal: action('onShowContactModal'), onShowGroupMembers: action('onShowGroupMembers'), onGoBack: action('onGoBack'), diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx index 03e3b6b3ef..1efaba9dd3 100644 --- a/ts/components/conversation/ConversationHeader.tsx +++ b/ts/components/conversation/ConversationHeader.tsx @@ -66,7 +66,6 @@ export type PropsDataType = { export type PropsActionsType = { onSetMuteNotifications: (seconds: number) => void; onSetDisappearingMessages: (seconds: number) => void; - onShowContactModal: (contactId: string) => void; onDeleteMessages: () => void; onSearchInConversation: () => void; onOutgoingAudioCallInConversation: () => void; @@ -519,9 +518,6 @@ export class ConversationHeader extends React.Component { const { conversationTitle, groupVersion, - id, - isMe, - onShowContactModal, onShowConversationDetails, type, } = this.props; @@ -541,11 +537,9 @@ export class ConversationHeader extends React.Component { let onClick: undefined | (() => void); switch (type) { case 'direct': - onClick = isMe - ? undefined - : () => { - onShowContactModal(id); - }; + onClick = () => { + onShowConversationDetails(); + }; break; case 'group': { const hasGV2AdminEnabled = groupVersion === 2; diff --git a/ts/state/smart/ConversationHeader.tsx b/ts/state/smart/ConversationHeader.tsx index 9905e0a4e3..e7ba569ae8 100644 --- a/ts/state/smart/ConversationHeader.tsx +++ b/ts/state/smart/ConversationHeader.tsx @@ -38,7 +38,6 @@ export type OwnProps = { onSetMuteNotifications: (seconds: number) => void; onSetPin: (value: boolean) => void; onShowAllMedia: () => void; - onShowContactModal: (contactId: string) => void; onShowConversationDetails: () => void; onShowGroupMembers: () => void; }; diff --git a/ts/views/conversation_view.ts b/ts/views/conversation_view.ts index 36459f4825..45cbf1f13d 100644 --- a/ts/views/conversation_view.ts +++ b/ts/views/conversation_view.ts @@ -384,7 +384,6 @@ export class ConversationView extends window.Backbone.View { const conversationHeaderProps = { id: this.model.id, - onShowContactModal: this.showContactModal.bind(this), onSetDisappearingMessages: (seconds: number) => this.setDisappearingMessages(seconds), onDeleteMessages: () => this.destroyMessages(),