소스 검색

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.
master
Дамян Минков 3 년 전
부모
커밋
1bce1524db
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 8
    3
      react/features/base/conference/middleware.web.js

+ 8
- 3
react/features/base/conference/middleware.web.js 파일 보기

@@ -44,9 +44,14 @@ MiddlewareRegistry.register(store => next => action => {
44 44
         break;
45 45
     }
46 46
     case CONFERENCE_FAILED: {
47
-        enableForcedReload
48
-            && action.error?.name === JitsiConferenceErrors.CONFERENCE_RESTARTED
49
-            && dispatch(setSkipPrejoinOnReload(true));
47
+        const errorName = action.error?.name;
48
+
49
+        if (errorName === JitsiConferenceErrors.MEMBERS_ONLY_ERROR
50
+            || errorName === JitsiConferenceErrors.PASSWORD_REQUIRED) {
51
+            dispatch(setPrejoinPageVisibility(false));
52
+        } else if (enableForcedReload && errorName === JitsiConferenceErrors.CONFERENCE_RESTARTED) {
53
+            dispatch(setSkipPrejoinOnReload(true));
54
+        }
50 55
 
51 56
         break;
52 57
     }

Loading…
취소
저장