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.
This commit is contained in:
Saúl Ibarra Corretgé 2019-06-25 09:37:39 +02:00 committed by Saúl Ibarra Corretgé
parent 94b3f6410d
commit a73a642c64
1 changed files with 2 additions and 4 deletions

View File

@ -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));
}
));