Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: lobby screen broken with prejoin disabled

Bettenbuk Zoltanbcffe0bba542
diff --git a/react/features/base/premeeting/components/web/InputField.js b/react/features/base/premeeting/components/web/InputField.js
index a23b28adf4..a81d236534 100644
--- a/react/features/base/premeeting/components/web/InputField.js
+++ b/react/features/base/premeeting/components/web/InputField.js
@@ -92,6 +92,8 @@ export default class InputField extends PureComponent<Props, State> {
value
};
}
+
+ return null;
}
/**
diff --git a/react/features/lobby/components/AbstractLobbyScreen.js b/react/features/lobby/components/AbstractLobbyScreen.js
index 95bcc4661e..50766057a7 100644
--- a/react/features/lobby/components/AbstractLobbyScreen.js
+++ b/react/features/lobby/components/AbstractLobbyScreen.js
@@ -128,6 +128,8 @@ export default class AbstractLobbyScreen<P: Props = Props> extends PureComponent
passwordJoinFailed: true
};
}
+
+ return null;
}
/**
diff --git a/react/features/lobby/components/web/LobbyScreen.js b/react/features/lobby/components/web/LobbyScreen.js
index d6fb8916d3..158a4ab73d 100644
--- a/react/features/lobby/components/web/LobbyScreen.js
+++ b/react/features/lobby/components/web/LobbyScreen.js
@@ -70,13 +70,25 @@ class LobbyScreen extends AbstractLobbyScreen {
);
}
+ /**
+ * Renders the participant form to let the knocking participant enter its details.
+ *
+ * NOTE: We don't use edit action on web since the prejoin functionality got merged.
+ * Mobile won't use it either once prejoin gets implemented there too.
+ *
+ * @inheritdoc
+ */
+ _renderParticipantForm() {
+ return this._renderParticipantInfo();
+ }
+
/**
* Renders the participant info fragment when we have all the required details of the user.
*
* @inheritdoc
*/
_renderParticipantInfo() {
- const { displayName, email } = this.state;
+ const { displayName } = this.state;
const { t } = this.props;
return (
@@ -86,11 +98,6 @@ class LobbyScreen extends AbstractLobbyScreen {
onChange = { this._onChangeDisplayName }
placeHolder = { t('lobby.nameField') }
value = { displayName } />
-
- <InputField
- onChange = { this._onChangeEmail }
- placeHolder = { t('lobby.emailField') }
- value = { email } />
</div>
</div>
);