Support cds.disableCompatibilityMode

This commit is contained in:
Fedor Indutny 2023-07-19 02:03:39 +02:00 committed by Fedor Indutnyy
parent a2b05333f7
commit ba9f1a3e5e
3 changed files with 7 additions and 2 deletions

View file

@ -14,6 +14,7 @@ import { HashType } from './types/Crypto';
import { getCountryCode } from './types/PhoneNumber';
export type ConfigKeyType =
| 'cds.disableCompatibilityMode'
| 'desktop.announcementGroup'
| 'desktop.calling.audioLevelForSpeaking'
| 'desktop.cdsi.returnAcisWithoutUaks'

View file

@ -1522,7 +1522,9 @@ export function initialize({
...res,
config: res.config.filter(
({ name }: { name: string }) =>
name.startsWith('desktop.') || name.startsWith('global.')
name.startsWith('desktop.') ||
name.startsWith('global.') ||
name.startsWith('cds.')
),
};
}

View file

@ -38,7 +38,9 @@ export async function getUuidsForE164s(
accessKeys.push(accessKey);
}
const returnAcisWithoutUaks = isEnabled('desktop.cdsi.returnAcisWithoutUaks');
const returnAcisWithoutUaks =
!isEnabled('cds.disableCompatibilityMode') &&
isEnabled('desktop.cdsi.returnAcisWithoutUaks');
log.info(
`getUuidsForE164s(${e164s}): acis=${acis.length} ` +