Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(android) disable ConnectionService by default
Saúl Ibarra Corretgéb8a669ad21d8
diff --git a/android/app/src/main/java/org/jitsi/meet/MainActivity.java b/android/app/src/main/java/org/jitsi/meet/MainActivity.javaindex 883622fd8c..2de18adcad 100644--- a/android/app/src/main/java/org/jitsi/meet/MainActivity.java+++ b/android/app/src/main/java/org/jitsi/meet/MainActivity.java@@ -152,7 +152,6 @@ public class MainActivity extends JitsiMeetActivity {= new JitsiMeetConferenceOptions.Builder().setServerURL(buildURL(defaultURL)).setFeatureFlag("welcomepage.enabled", true)- .setFeatureFlag("call-integration.enabled", false).setFeatureFlag("resolution", 360).setFeatureFlag("server-url-change.enabled", !configurationByRestrictions).build();diff --git a/react/features/app/components/App.native.tsx b/react/features/app/components/App.native.tsxindex f54d330f20..20ad0aa408 100644--- a/react/features/app/components/App.native.tsx+++ b/react/features/app/components/App.native.tsx@@ -112,13 +112,21 @@ export class App extends AbstractApp<IProps> {async _extraInit() {const { dispatch, getState } = this.state.store ?? {};const { flags = {} } = this.props;+ let callIntegrationEnabled = flags[CALL_INTEGRATION_ENABLED as keyof typeof flags];// CallKit does not work on the simulator, make sure we disable it.if (Platform.OS === 'ios' && DeviceInfo.isEmulatorSync()) {- flags['call-integration.enabled'] = false;+ flags[CALL_INTEGRATION_ENABLED] = false;+ callIntegrationEnabled = false;logger.info('Disabling CallKit because this is a simulator');}+ // Disable Android ConnectionService by default.+ if (Platform.OS === 'android' && typeof callIntegrationEnabled === 'undefined') {+ flags[CALL_INTEGRATION_ENABLED] = false;+ callIntegrationEnabled = false;+ }+// We set these early enough so then we avoid any unnecessary re-renders.dispatch?.(updateFlags(flags));@@ -163,8 +171,6 @@ export class App extends AbstractApp<IProps> {dispatch?.(updateSettings(this.props.userInfo || {}));// Update settings with feature-flag.- const callIntegrationEnabled = flags[CALL_INTEGRATION_ENABLED as keyof typeof flags];-if (typeof callIntegrationEnabled !== 'undefined') {dispatch?.(updateSettings({ disableCallIntegration: !callIntegrationEnabled }));}