From 8fa41bebb7bc5d2df7a4a95f0d677dc4b4a2cd38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Leren=20Sch=C3=B8pzinsky?= Date: Wed, 9 Sep 2020 09:22:34 +0200 Subject: [PATCH] rn: don't start native call integration multiple times When you join a conference that needs an authenticated moderator, as a guest, Jitsi Meet will continuously try and connect to the meeting every 5 seconds. Avoid starting the native call integration more than once. Fixes: https://github.com/jitsi/jitsi-meet/issues/6260 --- react/features/mobile/call-integration/middleware.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/react/features/mobile/call-integration/middleware.js b/react/features/mobile/call-integration/middleware.js index 965fb3eb9..03378815a 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();