Use non-global flag for usePqRatchet

Co-authored-by: gram-signal <84339875+gram-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2025-07-14 12:51:57 -05:00 committed by GitHub
parent d306cb688e
commit 443d7e86a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

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

View file

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