Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
[RN] CONFERENCE_FAILED with AUTHENTICATION_REQUIRED is recoverable
Lyubo Marinov4f2346aac96c
diff --git a/react/features/authentication/middleware.js b/react/features/authentication/middleware.jsindex a63a7323b9..2cb748e216 100644--- a/react/features/authentication/middleware.js+++ b/react/features/authentication/middleware.js@@ -64,14 +64,27 @@ MiddlewareRegistry.register(store => next => action => {break;}- case CONFERENCE_FAILED:- if (action.error.name- === JitsiConferenceErrors.AUTHENTICATION_REQUIRED) {+ case CONFERENCE_FAILED: {+ const { error } = action;++ // XXX The feature authentication affords recovery from+ // CONFERENCE_FAILED caused by+ // JitsiConferenceErrors.AUTHENTICATION_REQUIRED.+ let recoverable;++ if (error.name === JitsiConferenceErrors.AUTHENTICATION_REQUIRED) {+ if (typeof error.recoverable === 'undefined') {+ error.recoverable = true;+ }+ recoverable = error.recoverable;+ }+ if (recoverable) {store.dispatch(waitForOwner());} else {store.dispatch(stopWaitForOwner());}break;+ }case CONFERENCE_JOINED:if (_isWaitingForOwner(store)) {diff --git a/react/features/room-lock/middleware.js b/react/features/room-lock/middleware.jsindex 9b5cfd96e6..9ba58b5395 100644--- a/react/features/room-lock/middleware.js+++ b/react/features/room-lock/middleware.js@@ -29,6 +29,9 @@ MiddlewareRegistry.register(store => next => action => {if (conference&& error.name === JitsiConferenceErrors.PASSWORD_REQUIRED) {+ // XXX The feature room-lock affords recovery after+ // CONFERENCE_FAILED caused by+ // JitsiConferenceErrors.PASSWORD_REQUIRED.if (typeof error.recoverable === 'undefined') {error.recoverable = true;}