From 5d3de4ed5de463f432d5131630df1622d5735b87 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 20 Jun 2024 14:39:40 -0400 Subject: [PATCH] Remove a remote config flag --- ts/RemoteConfig.ts | 1 - ts/components/conversation/AboutContactModal.tsx | 7 ++----- ts/components/conversation/ProfileChangeNotification.tsx | 2 -- ts/util/getTitle.ts | 7 +------ ts/util/nicknames.ts | 6 ------ 5 files changed, 3 insertions(+), 20 deletions(-) diff --git a/ts/RemoteConfig.ts b/ts/RemoteConfig.ts index 9e8e1bd4ec4..f2262db5e1b 100644 --- a/ts/RemoteConfig.ts +++ b/ts/RemoteConfig.ts @@ -25,7 +25,6 @@ export type ConfigKeyType = | 'desktop.internalUser' | 'desktop.mediaQuality.levels' | 'desktop.messageCleanup' - | 'desktop.nicknames' | 'desktop.retryRespondMaxAge' | 'desktop.senderKey.retry' | 'desktop.senderKeyMaxAge' diff --git a/ts/components/conversation/AboutContactModal.tsx b/ts/components/conversation/AboutContactModal.tsx index 97f9c6f2e5d..d08e3adee18 100644 --- a/ts/components/conversation/AboutContactModal.tsx +++ b/ts/components/conversation/AboutContactModal.tsx @@ -12,10 +12,7 @@ import { UserText } from '../UserText'; import { SharedGroupNames } from '../SharedGroupNames'; import { About } from './About'; import { I18n } from '../I18n'; -import { - areNicknamesEnabled, - canHaveNicknameAndNote, -} from '../../util/nicknames'; +import { canHaveNicknameAndNote } from '../../util/nicknames'; import { Tooltip, TooltipPlacement } from '../Tooltip'; function muted(parts: Array) { @@ -255,7 +252,7 @@ export function AboutContactModal({ )} - {areNicknamesEnabled() && conversation.note && ( + {conversation.note && (