Use non-global flag for usePqRatchet
This commit is contained in:
parent
44bb4acf9b
commit
fcf19e2c42
2 changed files with 3 additions and 3 deletions
|
@ -40,6 +40,7 @@ export type ConfigKeyType =
|
||||||
| 'desktop.funPicker' // alpha
|
| 'desktop.funPicker' // alpha
|
||||||
| 'desktop.funPicker.beta'
|
| 'desktop.funPicker.beta'
|
||||||
| 'desktop.funPicker.prod'
|
| 'desktop.funPicker.prod'
|
||||||
|
| 'desktop.usePqRatchet'
|
||||||
| 'global.attachments.maxBytes'
|
| 'global.attachments.maxBytes'
|
||||||
| 'global.attachments.maxReceiveBytes'
|
| 'global.attachments.maxReceiveBytes'
|
||||||
| 'global.backups.mediaTierFallbackCdnNumber'
|
| 'global.backups.mediaTierFallbackCdnNumber'
|
||||||
|
@ -49,8 +50,7 @@ export type ConfigKeyType =
|
||||||
| 'global.messageQueueTimeInSeconds'
|
| 'global.messageQueueTimeInSeconds'
|
||||||
| 'global.nicknames.max'
|
| 'global.nicknames.max'
|
||||||
| 'global.nicknames.min'
|
| 'global.nicknames.min'
|
||||||
| 'global.textAttachmentLimitBytes'
|
| 'global.textAttachmentLimitBytes';
|
||||||
| 'global.usePqRatchet';
|
|
||||||
|
|
||||||
type ConfigValueType = {
|
type ConfigValueType = {
|
||||||
name: ConfigKeyType;
|
name: ConfigKeyType;
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { UsePQRatchet } from '@signalapp/libsignal-client';
|
||||||
import * as RemoteConfig from '../RemoteConfig';
|
import * as RemoteConfig from '../RemoteConfig';
|
||||||
|
|
||||||
export const isPQRatchetEnabled = (): UsePQRatchet => {
|
export const isPQRatchetEnabled = (): UsePQRatchet => {
|
||||||
return RemoteConfig.isEnabled('global.usePqRatchet')
|
return RemoteConfig.isEnabled('desktop.usePqRatchet')
|
||||||
? UsePQRatchet.Yes
|
? UsePQRatchet.Yes
|
||||||
: UsePQRatchet.No;
|
: UsePQRatchet.No;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue