signal-desktop/ts/util/isGroupCallingEnabled.ts
2021-08-06 14:21:01 -07:00

13 lines
420 B
TypeScript

// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { isProduction } from './version';
import * as RemoteConfig from '../RemoteConfig';
// We can remove this function once group calling has been turned on for everyone.
export function isGroupCallingEnabled(): boolean {
return (
RemoteConfig.isEnabled('desktop.groupCalling') ||
!isProduction(window.getVersion())
);
}