diff --git a/ts/RemoteConfig.ts b/ts/RemoteConfig.ts index d530a1fab..2aa97d648 100644 --- a/ts/RemoteConfig.ts +++ b/ts/RemoteConfig.ts @@ -15,7 +15,9 @@ import { HashType } from './types/Crypto'; import { getCountryCode } from './types/PhoneNumber'; export type ConfigKeyType = - | 'desktop.calling.ringrtcAdm' + | 'desktop.calling.ringrtcAdmFull' + | 'desktop.calling.ringrtcAdmInternal' + | 'desktop.calling.ringrtcAdmPreStable' | 'desktop.clientExpiration' | 'desktop.backup.credentialFetch' | 'desktop.internalUser' diff --git a/ts/util/ringrtc/ringrtcAdm.ts b/ts/util/ringrtc/ringrtcAdm.ts index 9583a027d..20a574563 100644 --- a/ts/util/ringrtc/ringrtcAdm.ts +++ b/ts/util/ringrtc/ringrtcAdm.ts @@ -10,14 +10,14 @@ export function getUseRingrtcAdm(): boolean { return localUseRingrtcAdm; } - if ( - isProduction(window.getVersion()) || - !RemoteConfig.isEnabled('desktop.internalUser') - ) { - return false; + if (!RemoteConfig.isEnabled('desktop.internalUser')) { + if (isProduction(window.getVersion())) { + return RemoteConfig.isEnabled('desktop.calling.ringrtcAdmFull'); + } + 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 {