浏览代码

fix: lobby screen broken with prejoin disabled

j8
Bettenbuk Zoltan 5 年前
父节点
当前提交
bcffe0bba5

+ 2
- 0
react/features/base/premeeting/components/web/InputField.js 查看文件

@@ -92,6 +92,8 @@ export default class InputField extends PureComponent<Props, State> {
92 92
                 value
93 93
             };
94 94
         }
95
+
96
+        return null;
95 97
     }
96 98
 
97 99
     /**

+ 2
- 0
react/features/lobby/components/AbstractLobbyScreen.js 查看文件

@@ -128,6 +128,8 @@ export default class AbstractLobbyScreen<P: Props = Props> extends PureComponent
128 128
                 passwordJoinFailed: true
129 129
             };
130 130
         }
131
+
132
+        return null;
131 133
     }
132 134
 
133 135
     /**

+ 13
- 6
react/features/lobby/components/web/LobbyScreen.js 查看文件

@@ -70,13 +70,25 @@ class LobbyScreen extends AbstractLobbyScreen {
70 70
         );
71 71
     }
72 72
 
73
+    /**
74
+     * Renders the participant form to let the knocking participant enter its details.
75
+     *
76
+     * NOTE: We don't use edit action on web since the prejoin functionality got merged.
77
+     * Mobile won't use it either once prejoin gets implemented there too.
78
+     *
79
+     * @inheritdoc
80
+     */
81
+    _renderParticipantForm() {
82
+        return this._renderParticipantInfo();
83
+    }
84
+
73 85
     /**
74 86
      * Renders the participant info fragment when we have all the required details of the user.
75 87
      *
76 88
      * @inheritdoc
77 89
      */
78 90
     _renderParticipantInfo() {
79
-        const { displayName, email } = this.state;
91
+        const { displayName } = this.state;
80 92
         const { t } = this.props;
81 93
 
82 94
         return (
@@ -86,11 +98,6 @@ class LobbyScreen extends AbstractLobbyScreen {
86 98
                         onChange = { this._onChangeDisplayName }
87 99
                         placeHolder = { t('lobby.nameField') }
88 100
                         value = { displayName } />
89
-
90
-                    <InputField
91
-                        onChange = { this._onChangeEmail }
92
-                        placeHolder = { t('lobby.emailField') }
93
-                        value = { email } />
94 101
                 </div>
95 102
             </div>
96 103
         );

正在加载...
取消
保存