Enable Hide Contact for all users
This commit is contained in:
parent
be7b178817
commit
f960c6b5db
6 changed files with 2 additions and 33 deletions
|
@ -185,7 +185,7 @@ export type PropsType = {
|
|||
onSelectConversation: (conversationId: string, messageId?: string) => void;
|
||||
onOutgoingAudioCallInConversation: (conversationId: string) => void;
|
||||
onOutgoingVideoCallInConversation: (conversationId: string) => void;
|
||||
removeConversation?: (conversationId: string) => void;
|
||||
removeConversation: (conversationId: string) => void;
|
||||
renderMessageSearchResult?: (id: string) => JSX.Element;
|
||||
showChooseGroupMembers: () => void;
|
||||
showConversation: ShowConversationType;
|
||||
|
|
|
@ -127,7 +127,6 @@ const useProps = (overrideProps: OverridePropsType = {}): PropsType => {
|
|||
}
|
||||
|
||||
const isUpdateDownloaded = false;
|
||||
const isContactManagementEnabled = true;
|
||||
|
||||
return {
|
||||
otherTabsUnreadStats: {
|
||||
|
@ -160,7 +159,6 @@ const useProps = (overrideProps: OverridePropsType = {}): PropsType => {
|
|||
hasUpdateDialog: false,
|
||||
unsupportedOSDialogType: undefined,
|
||||
isUpdateDownloaded,
|
||||
isContactManagementEnabled,
|
||||
navTabsCollapsed: false,
|
||||
|
||||
setChallengeStatus: action('setChallengeStatus'),
|
||||
|
|
|
@ -68,7 +68,6 @@ export type PropsType = {
|
|||
hasRelinkDialog: boolean;
|
||||
hasUpdateDialog: boolean;
|
||||
isUpdateDownloaded: boolean;
|
||||
isContactManagementEnabled: boolean;
|
||||
unsupportedOSDialogType: 'error' | 'warning' | undefined;
|
||||
|
||||
// These help prevent invalid states. For example, we don't need the list of pinned
|
||||
|
@ -182,7 +181,6 @@ export function LeftPane({
|
|||
lookupConversationWithoutServiceId,
|
||||
isMacOS,
|
||||
isUpdateDownloaded,
|
||||
isContactManagementEnabled,
|
||||
modeSpecificProps,
|
||||
navTabsCollapsed,
|
||||
onOutgoingAudioCallInConversation,
|
||||
|
@ -687,9 +685,7 @@ export function LeftPane({
|
|||
onOutgoingVideoCallInConversation={
|
||||
onOutgoingVideoCallInConversation
|
||||
}
|
||||
removeConversation={
|
||||
isContactManagementEnabled ? removeConversation : undefined
|
||||
}
|
||||
removeConversation={removeConversation}
|
||||
renderMessageSearchResult={renderMessageSearchResult}
|
||||
rowCount={helper.getRowCount()}
|
||||
scrollBehavior={scrollBehavior}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue