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(conference) force reload page on shard changes.
Jaya Allamsettydc73d1e3281f
diff --git a/react/features/base/conference/middleware.any.ts b/react/features/base/conference/middleware.any.tsindex 90cef62353..6f04d24a6c 100644--- a/react/features/base/conference/middleware.any.ts+++ b/react/features/base/conference/middleware.any.ts@@ -262,7 +262,9 @@ function _conferenceFailed({ dispatch, getState }: IStore, next: Function, actio_removeUnloadHandler(getState);}- if (enableForcedReload && error?.name === JitsiConferenceErrors.CONFERENCE_RESTARTED) {+ if (enableForcedReload+ && (error?.name === JitsiConferenceErrors.CONFERENCE_RESTARTED+ || error?.name === JitsiConnectionErrors.SHARD_CHANGED_ERROR)) {dispatch(conferenceWillLeave(conference));dispatch(reloadNow());}diff --git a/react/features/base/conference/middleware.web.ts b/react/features/base/conference/middleware.web.tsindex f343049936..593f35b303 100644--- a/react/features/base/conference/middleware.web.ts+++ b/react/features/base/conference/middleware.web.ts@@ -8,7 +8,7 @@ import { isPrejoinPageVisible } from '../../prejoin/functions';import { iAmVisitor } from '../../visitors/functions';import { CONNECTION_DISCONNECTED, CONNECTION_ESTABLISHED } from '../connection/actionTypes';import { hangup } from '../connection/actions.web';-import { JitsiConferenceErrors, browser } from '../lib-jitsi-meet';+import { JitsiConferenceErrors, JitsiConnectionErrors, browser } from '../lib-jitsi-meet';import { gumPending, setInitialGUMPromise } from '../media/actions';import { MEDIA_TYPE } from '../media/constants';import { IGUMPendingState } from '../media/types';@@ -117,7 +117,9 @@ MiddlewareRegistry.register(store => next => action => {case CONFERENCE_FAILED: {const errorName = action.error?.name;- if (enableForcedReload && errorName === JitsiConferenceErrors.CONFERENCE_RESTARTED) {+ if (enableForcedReload+ && (errorName === JitsiConferenceErrors.CONFERENCE_RESTARTED+ || errorName === JitsiConnectionErrors.SHARD_CHANGED_ERROR)) {dispatch(setSkipPrejoinOnReload(true));}diff --git a/react/features/overlay/middleware.ts b/react/features/overlay/middleware.tsindex 0a7ae30826..63df85bc18 100644--- a/react/features/overlay/middleware.ts+++ b/react/features/overlay/middleware.ts@@ -35,6 +35,7 @@ type ErrorType = {*/const RN_NO_RELOAD_DIALOG_ERRORS = [JitsiConnectionErrors.NOT_LIVE_ERROR,+ JitsiConnectionErrors.SHARD_CHANGED_ERROR,JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED,JitsiConferenceErrors.CONFERENCE_DESTROYED,JitsiConferenceErrors.CONNECTION_ERROR,