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';
|
||||
|
||||
export type ConfigKeyType =
|
||||
| 'desktop.calling.ringrtcAdm'
|
||||
| 'desktop.calling.ringrtcAdmFull'
|
||||
| 'desktop.calling.ringrtcAdmInternal'
|
||||
| 'desktop.calling.ringrtcAdmPreStable'
|
||||
| 'desktop.clientExpiration'
|
||||
| 'desktop.backup.credentialFetch'
|
||||
| 'desktop.internalUser'
|
||||
|
|
|
@ -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<void> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue