signal-desktop/ts/util/isGroupCallRaiseHandEnabled.ts
2024-06-11 16:45:28 -07:00

14 lines
406 B
TypeScript

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
import { isProduction } from './version';
export function isGroupCallRaiseHandEnabled(): boolean {
if (!isProduction(window.getVersion())) {
return true;
}
// In production, use the config
return Boolean(RemoteConfig.isEnabled('desktop.calling.raiseHand'));
}