[RN] No CallKit failure on recoverable errors

pull/2091/head jitsi-meet_2560
Lyubo Marinov 8 years ago
parent 4f2346aac9
commit 6f0fe06ba6
  1. 13
      react/features/mobile/callkit/middleware.js

@ -135,10 +135,15 @@ function _appWillMount({ dispatch, getState }, next, action) {
function _conferenceFailed(store, next, action) {
const result = next(action);
const { callUUID } = action.conference;
if (callUUID) {
CallKit.reportCallFailed(callUUID);
// XXX Certain CONFERENCE_FAILED errors are recoverable i.e. they have
// prevented the user from joining a specific conference but the app may be
// able to eventually join the conference.
if (!action.error.recoverable) {
const { callUUID } = action.conference;
if (callUUID) {
CallKit.reportCallFailed(callUUID);
}
}
return result;

Loading…
Cancel
Save