Enable Hide Contact for all users

This commit is contained in:
Scott Nonnenberg 2023-10-25 16:01:16 -07:00 committed by GitHub
parent be7b178817
commit f960c6b5db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 2 additions and 33 deletions

View file

@ -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;

View file

@ -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'),

View file

@ -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}