From a73a642c642b5a1140cc4fb26f7bde196b9e83b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 25 Jun 2019 09:37:39 +0200 Subject: [PATCH] rn: fix CallKit failure screen flash when kicked Pretend we have left instead of triggering a call failure. The user was already told in the dialog. --- react/features/conference/middleware.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/react/features/conference/middleware.js b/react/features/conference/middleware.js index b54bf57be..d05dae88b 100644 --- a/react/features/conference/middleware.js +++ b/react/features/conference/middleware.js @@ -5,12 +5,11 @@ import { CONFERENCE_JOINED, KICKED_OUT, VIDEO_QUALITY_LEVELS, - conferenceFailed, + conferenceLeft, getCurrentConference, setPreferredReceiverVideoQuality } from '../base/conference'; import { hideDialog, isDialogOpen } from '../base/dialog'; -import { JitsiConferenceEvents } from '../base/lib-jitsi-meet'; import { pinParticipant } from '../base/participants'; import { SET_REDUCED_UI } from '../base/responsive-ui'; import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux'; @@ -46,8 +45,7 @@ MiddlewareRegistry.register(store => next => action => { dispatch(notifyKickedOut( action.participant, () => { - dispatch( - conferenceFailed(action.conference, JitsiConferenceEvents.KICKED)); + dispatch(conferenceLeft(action.conference)); dispatch(appNavigate(undefined)); } ));