signal-desktop/ts/util/isAdhocCallingEnabled.ts
automated-signal 2332c2e4f2
Allow call links beta
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
2024-10-16 11:22:11 -07:00

19 lines
500 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
import { isBeta, isProduction } from './version';
export function isAdhocCallingEnabled(): boolean {
const version = window.getVersion();
if (isProduction(version)) {
return Boolean(RemoteConfig.isEnabled('desktop.calling.adhoc'));
}
if (isBeta(version)) {
return Boolean(RemoteConfig.isEnabled('desktop.calling.adhoc.beta'));
}
return true;
}