signal-desktop/ts/util/isGroupCallOutboundRingEnabled.ts
2022-11-30 14:35:37 -08:00

14 lines
483 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
import { isBeta } from './version';
export function isGroupCallOutboundRingEnabled(): boolean {
return Boolean(
RemoteConfig.isEnabled('desktop.internalUser') ||
RemoteConfig.isEnabled('desktop.groupCallOutboundRing2') ||
(isBeta(window.getVersion()) &&
RemoteConfig.isEnabled('desktop.groupCallOutboundRing2.beta'))
);
}