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.
This commit is contained in:
Дамян Минков 2022-06-17 14:30:31 +03:00
parent f613126776
commit ccc1157df5
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}
}