Open conversation details when clicking conversation header
This commit is contained in:
parent
9ecf47594b
commit
f31c5165d8
4 changed files with 3 additions and 12 deletions
|
@ -49,7 +49,6 @@ const commonProps = {
|
||||||
),
|
),
|
||||||
|
|
||||||
onShowAllMedia: action('onShowAllMedia'),
|
onShowAllMedia: action('onShowAllMedia'),
|
||||||
onShowContactModal: action('onShowContactModal'),
|
|
||||||
onShowGroupMembers: action('onShowGroupMembers'),
|
onShowGroupMembers: action('onShowGroupMembers'),
|
||||||
onGoBack: action('onGoBack'),
|
onGoBack: action('onGoBack'),
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@ export type PropsDataType = {
|
||||||
export type PropsActionsType = {
|
export type PropsActionsType = {
|
||||||
onSetMuteNotifications: (seconds: number) => void;
|
onSetMuteNotifications: (seconds: number) => void;
|
||||||
onSetDisappearingMessages: (seconds: number) => void;
|
onSetDisappearingMessages: (seconds: number) => void;
|
||||||
onShowContactModal: (contactId: string) => void;
|
|
||||||
onDeleteMessages: () => void;
|
onDeleteMessages: () => void;
|
||||||
onSearchInConversation: () => void;
|
onSearchInConversation: () => void;
|
||||||
onOutgoingAudioCallInConversation: () => void;
|
onOutgoingAudioCallInConversation: () => void;
|
||||||
|
@ -519,9 +518,6 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
|
||||||
const {
|
const {
|
||||||
conversationTitle,
|
conversationTitle,
|
||||||
groupVersion,
|
groupVersion,
|
||||||
id,
|
|
||||||
isMe,
|
|
||||||
onShowContactModal,
|
|
||||||
onShowConversationDetails,
|
onShowConversationDetails,
|
||||||
type,
|
type,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
@ -541,11 +537,9 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
|
||||||
let onClick: undefined | (() => void);
|
let onClick: undefined | (() => void);
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'direct':
|
case 'direct':
|
||||||
onClick = isMe
|
onClick = () => {
|
||||||
? undefined
|
onShowConversationDetails();
|
||||||
: () => {
|
};
|
||||||
onShowContactModal(id);
|
|
||||||
};
|
|
||||||
break;
|
break;
|
||||||
case 'group': {
|
case 'group': {
|
||||||
const hasGV2AdminEnabled = groupVersion === 2;
|
const hasGV2AdminEnabled = groupVersion === 2;
|
||||||
|
|
|
@ -38,7 +38,6 @@ export type OwnProps = {
|
||||||
onSetMuteNotifications: (seconds: number) => void;
|
onSetMuteNotifications: (seconds: number) => void;
|
||||||
onSetPin: (value: boolean) => void;
|
onSetPin: (value: boolean) => void;
|
||||||
onShowAllMedia: () => void;
|
onShowAllMedia: () => void;
|
||||||
onShowContactModal: (contactId: string) => void;
|
|
||||||
onShowConversationDetails: () => void;
|
onShowConversationDetails: () => void;
|
||||||
onShowGroupMembers: () => void;
|
onShowGroupMembers: () => void;
|
||||||
};
|
};
|
||||||
|
|
|
@ -384,7 +384,6 @@ export class ConversationView extends window.Backbone.View<ConversationModel> {
|
||||||
const conversationHeaderProps = {
|
const conversationHeaderProps = {
|
||||||
id: this.model.id,
|
id: this.model.id,
|
||||||
|
|
||||||
onShowContactModal: this.showContactModal.bind(this),
|
|
||||||
onSetDisappearingMessages: (seconds: number) =>
|
onSetDisappearingMessages: (seconds: number) =>
|
||||||
this.setDisappearingMessages(seconds),
|
this.setDisappearingMessages(seconds),
|
||||||
onDeleteMessages: () => this.destroyMessages(),
|
onDeleteMessages: () => this.destroyMessages(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue