Skip to content

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

rn: don't start native call integration multiple times

Jon Leren Schøpzinsky8fa41bebb7bc
diff --git a/react/features/mobile/call-integration/middleware.js b/react/features/mobile/call-integration/middleware.js
index 965fb3eb9f..03378815ab 100644
--- a/react/features/mobile/call-integration/middleware.js
+++ b/react/features/mobile/call-integration/middleware.js
@@ -264,6 +264,11 @@ function _conferenceWillJoin({ dispatch, getState }, next, action) {
const handle = callHandle || url.toString();
const hasVideo = !isVideoMutedByAudioOnly(state);
+ // If we already have a callUUID set, don't start a new call.
+ if (conference.callUUID) {
+ return result;
+ }
+
// When assigning the call UUID, do so in upper case, since iOS will return
// it upper cased.
conference.callUUID = (callUUID || uuid.v4()).toUpperCase();