From 0d1be294c0b19c22e3ae6d42f964ea2082e0203d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 30 Oct 2024 11:56:42 +0100 Subject: [PATCH] fix(rn,call-integration) use a more reliable event for starting The will-join event happens before we actually try to join and things would go wrong, whereas join-in-progress happens when it's guaranteed that joining will be successful. --- react/features/mobile/call-integration/middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/mobile/call-integration/middleware.ts b/react/features/mobile/call-integration/middleware.ts index 41ea1f9d6de9..f275c2b477a8 100644 --- a/react/features/mobile/call-integration/middleware.ts +++ b/react/features/mobile/call-integration/middleware.ts @@ -11,8 +11,8 @@ import { SET_AUDIO_ONLY } from '../../base/audio-only/actionTypes'; import { CONFERENCE_FAILED, CONFERENCE_JOINED, + CONFERENCE_JOIN_IN_PROGRESS, CONFERENCE_LEFT, - CONFERENCE_WILL_JOIN, CONFERENCE_WILL_LEAVE } from '../../base/conference/actionTypes'; import { @@ -77,7 +77,7 @@ CallIntegration && MiddlewareRegistry.register(store => next => action => { case CONFERENCE_WILL_LEAVE: return _conferenceLeft(store, next, action); - case CONFERENCE_WILL_JOIN: + case CONFERENCE_JOIN_IN_PROGRESS: return _conferenceWillJoin(store, next, action); case SET_AUDIO_ONLY: