fix: Fixes navigating back to welcome page after clicking cancel on login window.

It was handling just conference_failed with password required, but not connection failed with password required.
pull/11696/head stable/jitsi-meet_7439
Дамян Минков 3 years ago
parent f613126776
commit ccc1157df5
  1. 3
      react/features/authentication/middleware.web.js

@ -51,9 +51,10 @@ MiddlewareRegistry.register(store => next => action => {
dispatch(hideLoginDialog());
const { authRequired, conference } = getState()['features/base/conference'];
const { passwordRequired } = getState()['features/base/connection'];
// Only end the meeting if we are not already inside and trying to upgrade.
if (authRequired && !conference) {
if ((authRequired && !conference) || passwordRequired) {
dispatch(maybeRedirectToWelcomePage());
}
}

Loading…
Cancel
Save