fix(auth) fix WaitForOwnerDialog not vanishing

Since all the auth logic is not ported to React on the web,
`_isWaitingForOwner` will always return `false` because the
`waitForOwner()` action is not (yet) used there.

THis fix always tries to hide the dialog no matter what, which is not a
Bad Thing to do anyway.

There is a related bug remaining, however: if one pressed "I am the
host" and then cancel, it doesn't goo back to the previous dialog, but
it completely kils the meeting. This is a compromise we'll have to live
with for a bit longer.

Fixes: https://github.com/jitsi/jitsi-meet/issues/11413
Fixes: https://github.com/jitsi/jitsi-meet/issues/11432
This commit is contained in:
Saúl Ibarra Corretgé 2022-04-29 13:22:18 +02:00 committed by Saúl Ibarra Corretgé
parent 6802a03b7f
commit b9c4d28dac
1 changed files with 1 additions and 3 deletions

View File

@ -83,9 +83,7 @@ MiddlewareRegistry.register(store => next => action => {
}
case CONFERENCE_JOINED:
if (_isWaitingForOwner(store)) {
store.dispatch(stopWaitForOwner());
}
store.dispatch(stopWaitForOwner());
store.dispatch(hideLoginDialog());
break;