Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] No CallKit failure on recoverable errors

Lyubo Marinov6f0fe06ba67a
diff --git a/react/features/mobile/callkit/middleware.js b/react/features/mobile/callkit/middleware.js
index 538f749615..7e68fbf78e 100644
--- a/react/features/mobile/callkit/middleware.js
+++ b/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;