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
fix: Fixes correct state in lobby screen on wrong password.
Дамян Минков2adb5dc7d660
diff --git a/react/features/lobby/middleware.js b/react/features/lobby/middleware.jsindex 020dbe02ac..b5ee69a5c0 100644--- a/react/features/lobby/middleware.js+++ b/react/features/lobby/middleware.js@@ -3,7 +3,11 @@import { batch } from 'react-redux';import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../base/app';-import { CONFERENCE_FAILED, CONFERENCE_JOINED } from '../base/conference';+import {+ CONFERENCE_FAILED,+ CONFERENCE_JOINED,+ conferenceWillJoin+} from '../base/conference';import { JitsiConferenceErrors, JitsiConferenceEvents } from '../base/lib-jitsi-meet';import { getFirstLoadableAvatarUrl, getParticipantDisplayName } from '../base/participants';import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';@@ -121,7 +125,8 @@ StateListenerRegistry.register(function _conferenceFailed({ dispatch, getState }, next, action) {const { error } = action;const state = getState();- const nonFirstFailure = Boolean(state['features/base/conference'].membersOnly);+ const { membersOnly } = state['features/base/conference'];+ const nonFirstFailure = Boolean(membersOnly);if (error.name === JitsiConferenceErrors.MEMBERS_ONLY_ERROR) {if (typeof error.recoverable === 'undefined') {@@ -136,6 +141,11 @@ function _conferenceFailed({ dispatch, getState }, next, action) {dispatch(startKnocking());}+ // In case of wrong password we need to be in the right state if in the meantime someone allows us to join+ if (nonFirstFailure) {+ dispatch(conferenceWillJoin(membersOnly));+ }+dispatch(setPasswordJoinFailed(nonFirstFailure));return result;