Use flag for calling raise hand

This commit is contained in:
ayumi-signal 2024-06-11 16:45:28 -07:00 committed by GitHub
parent 03406b15fa
commit ad3366fa5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,14 @@
// 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'));
}