Use flag for calling raise hand
This commit is contained in:
parent
03406b15fa
commit
ad3366fa5c
7 changed files with 27 additions and 1 deletions
14
ts/util/isGroupCallRaiseHandEnabled.ts
Normal file
14
ts/util/isGroupCallRaiseHandEnabled.ts
Normal 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'));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue