Allow call links beta
This commit is contained in:
parent
a0b7539620
commit
2acc5f26f9
3 changed files with 29 additions and 2 deletions
|
@ -2,7 +2,18 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as RemoteConfig from '../RemoteConfig';
|
||||
import { isBeta, isProduction } from './version';
|
||||
|
||||
export function isAdhocCallingEnabled(): boolean {
|
||||
return Boolean(RemoteConfig.isEnabled('desktop.calling.adhoc'));
|
||||
const version = window.getVersion();
|
||||
|
||||
if (isProduction(version)) {
|
||||
return Boolean(RemoteConfig.isEnabled('desktop.calling.adhoc'));
|
||||
}
|
||||
|
||||
if (isBeta(version)) {
|
||||
return Boolean(RemoteConfig.isEnabled('desktop.calling.adhoc.beta'));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue