Update remote configs for ringrtcAdm feature.
This commit is contained in:
parent
46c8d26db9
commit
53372efca1
2 changed files with 9 additions and 7 deletions
|
@ -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'
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue