Allow call links beta
This commit is contained in:
parent
a0b7539620
commit
2acc5f26f9
3 changed files with 29 additions and 2 deletions
|
@ -15,6 +15,7 @@ import {
|
|||
type CallHistoryDetails,
|
||||
CallMode,
|
||||
} from '../types/CallDisposition';
|
||||
import { isBeta, isProduction } from './version';
|
||||
|
||||
export const CALL_LINK_DEFAULT_STATE: Pick<
|
||||
CallLinkType,
|
||||
|
@ -43,7 +44,20 @@ export function isCallLinksCreateEnabled(): boolean {
|
|||
if (isTestOrMockEnvironment()) {
|
||||
return true;
|
||||
}
|
||||
return RemoteConfig.getValue('desktop.calling.adhoc.create') === 'TRUE';
|
||||
|
||||
const version = window.getVersion();
|
||||
|
||||
if (isProduction(version)) {
|
||||
return RemoteConfig.getValue('desktop.calling.adhoc.create') === 'TRUE';
|
||||
}
|
||||
|
||||
if (isBeta(version)) {
|
||||
return (
|
||||
RemoteConfig.getValue('desktop.calling.adhoc.create.beta') === 'TRUE'
|
||||
);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
export function callLinkToConversation(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue