mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Use non-global flag for usePqRatchet
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user