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:
parent
94b3f6410d
commit
a73a642c64
|
@ -5,12 +5,11 @@ import {
|
||||||
CONFERENCE_JOINED,
|
CONFERENCE_JOINED,
|
||||||
KICKED_OUT,
|
KICKED_OUT,
|
||||||
VIDEO_QUALITY_LEVELS,
|
VIDEO_QUALITY_LEVELS,
|
||||||
conferenceFailed,
|
conferenceLeft,
|
||||||
getCurrentConference,
|
getCurrentConference,
|
||||||
setPreferredReceiverVideoQuality
|
setPreferredReceiverVideoQuality
|
||||||
} from '../base/conference';
|
} from '../base/conference';
|
||||||
import { hideDialog, isDialogOpen } from '../base/dialog';
|
import { hideDialog, isDialogOpen } from '../base/dialog';
|
||||||
import { JitsiConferenceEvents } from '../base/lib-jitsi-meet';
|
|
||||||
import { pinParticipant } from '../base/participants';
|
import { pinParticipant } from '../base/participants';
|
||||||
import { SET_REDUCED_UI } from '../base/responsive-ui';
|
import { SET_REDUCED_UI } from '../base/responsive-ui';
|
||||||
import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
|
import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
|
||||||
|
@ -46,8 +45,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
dispatch(notifyKickedOut(
|
dispatch(notifyKickedOut(
|
||||||
action.participant,
|
action.participant,
|
||||||
() => {
|
() => {
|
||||||
dispatch(
|
dispatch(conferenceLeft(action.conference));
|
||||||
conferenceFailed(action.conference, JitsiConferenceEvents.KICKED));
|
|
||||||
dispatch(appNavigate(undefined));
|
dispatch(appNavigate(undefined));
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue