浏览代码

fix: lobby screen broken with prejoin disabled

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

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

92
                 value
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
                 passwordJoinFailed: true
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
         );
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
      * Renders the participant info fragment when we have all the required details of the user.
86
      * Renders the participant info fragment when we have all the required details of the user.
75
      *
87
      *
76
      * @inheritdoc
88
      * @inheritdoc
77
      */
89
      */
78
     _renderParticipantInfo() {
90
     _renderParticipantInfo() {
79
-        const { displayName, email } = this.state;
91
+        const { displayName } = this.state;
80
         const { t } = this.props;
92
         const { t } = this.props;
81
 
93
 
82
         return (
94
         return (
86
                         onChange = { this._onChangeDisplayName }
98
                         onChange = { this._onChangeDisplayName }
87
                         placeHolder = { t('lobby.nameField') }
99
                         placeHolder = { t('lobby.nameField') }
88
                         value = { displayName } />
100
                         value = { displayName } />
89
-
90
-                    <InputField
91
-                        onChange = { this._onChangeEmail }
92
-                        placeHolder = { t('lobby.emailField') }
93
-                        value = { email } />
94
                 </div>
101
                 </div>
95
             </div>
102
             </div>
96
         );
103
         );

正在加载...
取消
保存