signal-desktop/ts/util/isGroupCallOutboundRingEnabled.ts

15 lines
483 B
TypeScript
Raw Normal View History

// 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'))
);
}