Add desktop.groupCallOutboundRing2.beta flag

This commit is contained in:
Fedor Indutny 2022-11-30 14:35:37 -08:00 committed by GitHub
parent 1c9ef00142
commit 30d1b29021
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -2,10 +2,13 @@
// 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')
RemoteConfig.isEnabled('desktop.groupCallOutboundRing2') ||
(isBeta(window.getVersion()) &&
RemoteConfig.isEnabled('desktop.groupCallOutboundRing2.beta'))
);
}