feat: Fix display name in prejoin stealing focus.

When there is a password and lobby enabled, participants cannot enter password as the display name is stealing the focus.
When there is just password set the same field steals the focus from the password prompt.
This commit is contained in:
Дамян Минков 2022-06-07 15:17:49 -05:00
parent d8d7224dc4
commit c9da93bcc4
1 changed files with 8 additions and 3 deletions

View File

@ -44,9 +44,14 @@ MiddlewareRegistry.register(store => next => action => {
break; break;
} }
case CONFERENCE_FAILED: { case CONFERENCE_FAILED: {
enableForcedReload const errorName = action.error?.name;
&& action.error?.name === JitsiConferenceErrors.CONFERENCE_RESTARTED
&& dispatch(setSkipPrejoinOnReload(true)); if (errorName === JitsiConferenceErrors.MEMBERS_ONLY_ERROR
|| errorName === JitsiConferenceErrors.PASSWORD_REQUIRED) {
dispatch(setPrejoinPageVisibility(false));
} else if (enableForcedReload && errorName === JitsiConferenceErrors.CONFERENCE_RESTARTED) {
dispatch(setSkipPrejoinOnReload(true));
}
break; break;
} }