Enable Hide Contact for all users
This commit is contained in:
parent
be7b178817
commit
f960c6b5db
6 changed files with 2 additions and 33 deletions
|
@ -20,8 +20,6 @@ export type ConfigKeyType =
|
||||||
| 'desktop.cdsi.returnAcisWithoutUaks'
|
| 'desktop.cdsi.returnAcisWithoutUaks'
|
||||||
| 'desktop.clientExpiration'
|
| 'desktop.clientExpiration'
|
||||||
| 'desktop.editMessageSend'
|
| 'desktop.editMessageSend'
|
||||||
| 'desktop.contactManagement.beta'
|
|
||||||
| 'desktop.contactManagement'
|
|
||||||
| 'desktop.groupCallOutboundRing2.beta'
|
| 'desktop.groupCallOutboundRing2.beta'
|
||||||
| 'desktop.groupCallOutboundRing2'
|
| 'desktop.groupCallOutboundRing2'
|
||||||
| 'desktop.groupMultiTypingIndicators'
|
| 'desktop.groupMultiTypingIndicators'
|
||||||
|
|
|
@ -185,7 +185,7 @@ export type PropsType = {
|
||||||
onSelectConversation: (conversationId: string, messageId?: string) => void;
|
onSelectConversation: (conversationId: string, messageId?: string) => void;
|
||||||
onOutgoingAudioCallInConversation: (conversationId: string) => void;
|
onOutgoingAudioCallInConversation: (conversationId: string) => void;
|
||||||
onOutgoingVideoCallInConversation: (conversationId: string) => void;
|
onOutgoingVideoCallInConversation: (conversationId: string) => void;
|
||||||
removeConversation?: (conversationId: string) => void;
|
removeConversation: (conversationId: string) => void;
|
||||||
renderMessageSearchResult?: (id: string) => JSX.Element;
|
renderMessageSearchResult?: (id: string) => JSX.Element;
|
||||||
showChooseGroupMembers: () => void;
|
showChooseGroupMembers: () => void;
|
||||||
showConversation: ShowConversationType;
|
showConversation: ShowConversationType;
|
||||||
|
|
|
@ -127,7 +127,6 @@ const useProps = (overrideProps: OverridePropsType = {}): PropsType => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const isUpdateDownloaded = false;
|
const isUpdateDownloaded = false;
|
||||||
const isContactManagementEnabled = true;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
otherTabsUnreadStats: {
|
otherTabsUnreadStats: {
|
||||||
|
@ -160,7 +159,6 @@ const useProps = (overrideProps: OverridePropsType = {}): PropsType => {
|
||||||
hasUpdateDialog: false,
|
hasUpdateDialog: false,
|
||||||
unsupportedOSDialogType: undefined,
|
unsupportedOSDialogType: undefined,
|
||||||
isUpdateDownloaded,
|
isUpdateDownloaded,
|
||||||
isContactManagementEnabled,
|
|
||||||
navTabsCollapsed: false,
|
navTabsCollapsed: false,
|
||||||
|
|
||||||
setChallengeStatus: action('setChallengeStatus'),
|
setChallengeStatus: action('setChallengeStatus'),
|
||||||
|
|
|
@ -68,7 +68,6 @@ export type PropsType = {
|
||||||
hasRelinkDialog: boolean;
|
hasRelinkDialog: boolean;
|
||||||
hasUpdateDialog: boolean;
|
hasUpdateDialog: boolean;
|
||||||
isUpdateDownloaded: boolean;
|
isUpdateDownloaded: boolean;
|
||||||
isContactManagementEnabled: boolean;
|
|
||||||
unsupportedOSDialogType: 'error' | 'warning' | undefined;
|
unsupportedOSDialogType: 'error' | 'warning' | undefined;
|
||||||
|
|
||||||
// These help prevent invalid states. For example, we don't need the list of pinned
|
// These help prevent invalid states. For example, we don't need the list of pinned
|
||||||
|
@ -182,7 +181,6 @@ export function LeftPane({
|
||||||
lookupConversationWithoutServiceId,
|
lookupConversationWithoutServiceId,
|
||||||
isMacOS,
|
isMacOS,
|
||||||
isUpdateDownloaded,
|
isUpdateDownloaded,
|
||||||
isContactManagementEnabled,
|
|
||||||
modeSpecificProps,
|
modeSpecificProps,
|
||||||
navTabsCollapsed,
|
navTabsCollapsed,
|
||||||
onOutgoingAudioCallInConversation,
|
onOutgoingAudioCallInConversation,
|
||||||
|
@ -687,9 +685,7 @@ export function LeftPane({
|
||||||
onOutgoingVideoCallInConversation={
|
onOutgoingVideoCallInConversation={
|
||||||
onOutgoingVideoCallInConversation
|
onOutgoingVideoCallInConversation
|
||||||
}
|
}
|
||||||
removeConversation={
|
removeConversation={removeConversation}
|
||||||
isContactManagementEnabled ? removeConversation : undefined
|
|
||||||
}
|
|
||||||
renderMessageSearchResult={renderMessageSearchResult}
|
renderMessageSearchResult={renderMessageSearchResult}
|
||||||
rowCount={helper.getRowCount()}
|
rowCount={helper.getRowCount()}
|
||||||
scrollBehavior={scrollBehavior}
|
scrollBehavior={scrollBehavior}
|
||||||
|
|
|
@ -167,27 +167,6 @@ export const getStoriesEnabled = createSelector(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
export const getContactManagementEnabled = createSelector(
|
|
||||||
getRemoteConfig,
|
|
||||||
(remoteConfig: ConfigMapType): boolean => {
|
|
||||||
if (isRemoteConfigFlagEnabled(remoteConfig, 'desktop.contactManagement')) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
|
||||||
isRemoteConfigFlagEnabled(
|
|
||||||
remoteConfig,
|
|
||||||
'desktop.contactManagement.beta'
|
|
||||||
) &&
|
|
||||||
isBeta(window.getVersion())
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
export const getSafetyNumberMode = createSelector(
|
export const getSafetyNumberMode = createSelector(
|
||||||
getRemoteConfig,
|
getRemoteConfig,
|
||||||
getServerTimeSkew,
|
getServerTimeSkew,
|
||||||
|
|
|
@ -40,7 +40,6 @@ import { hasNetworkDialog } from '../selectors/network';
|
||||||
import {
|
import {
|
||||||
getPreferredLeftPaneWidth,
|
getPreferredLeftPaneWidth,
|
||||||
getUsernamesEnabled,
|
getUsernamesEnabled,
|
||||||
getContactManagementEnabled,
|
|
||||||
getNavTabsCollapsed,
|
getNavTabsCollapsed,
|
||||||
} from '../selectors/items';
|
} from '../selectors/items';
|
||||||
import {
|
import {
|
||||||
|
@ -232,7 +231,6 @@ const mapStateToProps = (state: StateType) => {
|
||||||
targetedMessageId: getTargetedMessage(state)?.id,
|
targetedMessageId: getTargetedMessage(state)?.id,
|
||||||
showArchived: getShowArchived(state),
|
showArchived: getShowArchived(state),
|
||||||
getPreferredBadge: getPreferredBadgeSelector(state),
|
getPreferredBadge: getPreferredBadgeSelector(state),
|
||||||
isContactManagementEnabled: getContactManagementEnabled(state),
|
|
||||||
i18n: getIntl(state),
|
i18n: getIntl(state),
|
||||||
isMacOS: getIsMacOS(state),
|
isMacOS: getIsMacOS(state),
|
||||||
regionCode: getRegionCode(state),
|
regionCode: getRegionCode(state),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue