mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 19:32:27 +00:00
Currently only 2 options are implemented, mainly aimed at helping troubleshoot audio related problems: - Disable native call integration (it disables CallKit / ConnectionService) - Disable P2P
21 lines
662 B
JavaScript
21 lines
662 B
JavaScript
// @flow
|
|
|
|
import { CALL_INTEGRATION_ENABLED, getFeatureFlag } from '../../base/flags';
|
|
import { toState } from '../../base/redux';
|
|
|
|
/**
|
|
* Checks if call integration is enabled or not.
|
|
*
|
|
* @param {Function|Object} stateful - The redux store or {@code getState}
|
|
* function.
|
|
* @returns {string} - Default URL for the app.
|
|
*/
|
|
export function isCallIntegrationEnabled(stateful: Function | Object) {
|
|
const state = toState(stateful);
|
|
const { disableCallIntegration } = state['features/base/settings'];
|
|
const flag = getFeatureFlag(state, CALL_INTEGRATION_ENABLED);
|
|
|
|
// The feature flag has precedence.
|
|
return flag ?? !disableCallIntegration;
|
|
}
|