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
feat(errors): fix error handling for connection and conference
Saúl Ibarra Corretgéde0d69a20e2e
diff --git a/react/features/base/conference/reducer.js b/react/features/base/conference/reducer.jsindex c7409bdbf1..844c11ae8a 100644--- a/react/features/base/conference/reducer.js+++ b/react/features/base/conference/reducer.js@@ -82,7 +82,10 @@ ReducerRegistry.register('features/base/conference', (state = {}, action) => {* reduction of the specified action.*/function _conferenceFailed(state, { conference, error }) {- if (state.conference && state.conference !== conference) {+ // The active conference or the one we are joining.+ const conference_ = state.conference || state.joining;++ if (conference_ && conference_ !== conference) {return state;}diff --git a/react/features/base/connection/reducer.js b/react/features/base/connection/reducer.jsindex 0c2fbe06aa..d7ec6d0b1a 100644--- a/react/features/base/connection/reducer.js+++ b/react/features/base/connection/reducer.js@@ -96,7 +96,11 @@ function _connectionFailed(connection: Object,error: Object | string}) {- if (state.connection && state.connection !== connection) {++ // The active or in-progress connection.+ const connection_ = state.connecting || state.connection;++ if (connection_ && connection_ !== connection) {return state;}