Update remote configs for ringrtcAdm feature.

This commit is contained in:
Miriam Zimmerman 2025-01-15 14:25:14 -05:00 committed by GitHub
parent 46c8d26db9
commit 53372efca1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View file

@ -15,7 +15,9 @@ import { HashType } from './types/Crypto';
import { getCountryCode } from './types/PhoneNumber'; import { getCountryCode } from './types/PhoneNumber';
export type ConfigKeyType = export type ConfigKeyType =
| 'desktop.calling.ringrtcAdm' | 'desktop.calling.ringrtcAdmFull'
| 'desktop.calling.ringrtcAdmInternal'
| 'desktop.calling.ringrtcAdmPreStable'
| 'desktop.clientExpiration' | 'desktop.clientExpiration'
| 'desktop.backup.credentialFetch' | 'desktop.backup.credentialFetch'
| 'desktop.internalUser' | 'desktop.internalUser'

View file

@ -10,14 +10,14 @@ export function getUseRingrtcAdm(): boolean {
return localUseRingrtcAdm; return localUseRingrtcAdm;
} }
if ( if (!RemoteConfig.isEnabled('desktop.internalUser')) {
isProduction(window.getVersion()) || if (isProduction(window.getVersion())) {
!RemoteConfig.isEnabled('desktop.internalUser') return RemoteConfig.isEnabled('desktop.calling.ringrtcAdmFull');
) { }
return false; return RemoteConfig.isEnabled('desktop.calling.ringrtcAdmPreStable');
} }
return RemoteConfig.isEnabled('desktop.calling.ringrtcAdm'); return RemoteConfig.isEnabled('desktop.calling.ringrtcAdmInternal');
} }
export async function setUseRingrtcAdm(value: boolean): Promise<void> { export async function setUseRingrtcAdm(value: boolean): Promise<void> {