diff --git a/ts/RemoteConfig.ts b/ts/RemoteConfig.ts index 02ac1af8b0..742ad37bd6 100644 --- a/ts/RemoteConfig.ts +++ b/ts/RemoteConfig.ts @@ -40,6 +40,7 @@ export type ConfigKeyType = | 'desktop.funPicker' // alpha | 'desktop.funPicker.beta' | 'desktop.funPicker.prod' + | 'desktop.usePqRatchet' | 'global.attachments.maxBytes' | 'global.attachments.maxReceiveBytes' | 'global.backups.mediaTierFallbackCdnNumber' @@ -49,8 +50,7 @@ export type ConfigKeyType = | 'global.messageQueueTimeInSeconds' | 'global.nicknames.max' | 'global.nicknames.min' - | 'global.textAttachmentLimitBytes' - | 'global.usePqRatchet'; + | 'global.textAttachmentLimitBytes'; type ConfigValueType = { name: ConfigKeyType; diff --git a/ts/util/isPQRatchetEnabled.ts b/ts/util/isPQRatchetEnabled.ts index 6155f070e8..4976bb7ece 100644 --- a/ts/util/isPQRatchetEnabled.ts +++ b/ts/util/isPQRatchetEnabled.ts @@ -5,7 +5,7 @@ import { UsePQRatchet } from '@signalapp/libsignal-client'; import * as RemoteConfig from '../RemoteConfig'; export const isPQRatchetEnabled = (): UsePQRatchet => { - return RemoteConfig.isEnabled('global.usePqRatchet') + return RemoteConfig.isEnabled('desktop.usePqRatchet') ? UsePQRatchet.Yes : UsePQRatchet.No; };