Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(react/conference): media session is not established for lonely meetings

Calin-Teodor12c23d9df0b3
diff --git a/react/features/conference/components/functions.native.ts b/react/features/conference/components/functions.native.ts
index e1e425879c..d2f597d592 100644
--- a/react/features/conference/components/functions.native.ts
+++ b/react/features/conference/components/functions.native.ts
@@ -1,4 +1,5 @@
import { IReduxState } from '../../app/types';
+import { getParticipantCountWithFake } from '../../base/participants/functions';
export * from './functions.any';
@@ -18,6 +19,9 @@ export const isConnecting = (state: IReduxState) => {
leaving
} = state['features/base/conference'];
+ // Alone never establishes a media session.
+ const mediaConnecting = !iceConnected && getParticipantCountWithFake(state) > 1;
+
// XXX There is a window of time between the successful establishment of the
// XMPP connection and the subsequent commencement of joining the MUC during
// which the app does not appear to be doing anything according to the redux
@@ -32,6 +36,6 @@ export const isConnecting = (state: IReduxState) => {
return Boolean(
connecting
|| (connection && (!membersOnly && (joining || (!conference && !leaving))))
- || (conference && !iceConnected && !leaving)
+ || (conference && mediaConnecting && !leaving)
);
};