Skip to content

Commit

Permalink
fix: Fixes navigating back to welcome page after clicking cancel on l…
Browse files Browse the repository at this point in the history
…ogin window.

It was handling just conference_failed with password required, but not connection failed with password required.
  • Loading branch information
damencho committed Jun 17, 2022
1 parent f613126 commit ccc1157
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/features/authentication/middleware.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit ccc1157

Please sign in to comment.