Skip to content

Commit

Permalink
Separate flag for cdsi in beta channel
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Sep 14, 2022
1 parent 5a8f484 commit 1a54d43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ts/RemoteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type ConfigKeyType =
| 'desktop.announcementGroup'
| 'desktop.calling.audioLevelForSpeaking'
| 'desktop.cdsi'
| 'desktop.cdsi.beta'
| 'desktop.cdsi.returnAcisWithoutUaks'
| 'desktop.cdsi.mirroring'
| 'desktop.clientExpiration'
Expand Down
6 changes: 5 additions & 1 deletion ts/util/getUuidsForE164s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { UUIDStringType } from '../types/UUID';
import * as log from '../logging/log';
import { isEnabled } from '../RemoteConfig';
import { isDirectConversation, isMe } from './whatTypeOfConversation';
import { isBeta } from './version';

export async function getUuidsForE164s(
server: Pick<WebAPIType, 'cdsLookup'>,
Expand Down Expand Up @@ -39,7 +40,10 @@ export async function getUuidsForE164s(
}

const returnAcisWithoutUaks = isEnabled('desktop.cdsi.returnAcisWithoutUaks');
const isCDSI = isEnabled('desktop.cdsi');
const isCDSI =
isEnabled('desktop.cdsi') ||
(isBeta(window.getVersion()) && isEnabled('desktop.cdsi.beta'));

const isMirroring = isEnabled('desktop.cdsi.mirroring');

log.info(
Expand Down

0 comments on commit 1a54d43

Please sign in to comment.