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:
parent
d8d7224dc4
commit
c9da93bcc4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue