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(prejoin) hide skip prejoin for exposed app

Tudor-Ovidiu Avramf6433668d550
diff --git a/react/features/prejoin/components/Prejoin.js b/react/features/prejoin/components/Prejoin.js
index 2ef67644a0..e65455f12b 100644
--- a/react/features/prejoin/components/Prejoin.js
+++ b/react/features/prejoin/components/Prejoin.js
@@ -105,6 +105,11 @@ type Props = {
*/
showDialog: boolean,
+ /**
+ * Flag signaling the visibility of the skip prejoin toggle
+ */
+ showSkipPrejoin: boolean,
+
/**
* Used for translation.
*/
@@ -134,7 +139,8 @@ class Prejoin extends Component<Props, State> {
* @static
*/
static defaultProps = {
- showJoinActions: true
+ showJoinActions: true,
+ showSkipPrejoin: true
};
/**
@@ -339,7 +345,11 @@ class Prejoin extends Component<Props, State> {
* @returns {React$Element}
*/
_renderSkipPrejoinButton() {
- const { buttonIsToggled, t } = this.props;
+ const { buttonIsToggled, t, showSkipPrejoin } = this.props;
+
+ if (!showSkipPrejoin) {
+ return null;
+ }
return (
<div className = 'prejoin-checkbox-container'>
diff --git a/react/features/prejoin/components/PrejoinApp.js b/react/features/prejoin/components/PrejoinApp.js
index 50cef71339..57b0747aa5 100644
--- a/react/features/prejoin/components/PrejoinApp.js
+++ b/react/features/prejoin/components/PrejoinApp.js
@@ -21,6 +21,11 @@ type Props = {
* Flag signaling the visibility of join label, input and buttons
*/
showJoinActions: boolean,
+
+ /**
+ * Flag signaling the visibility of the skip prejoin toggle
+ */
+ showSkipPrejoin: boolean,
};
/**
@@ -42,13 +47,14 @@ export default class PrejoinApp extends BaseApp<Props> {
this._init.then(async () => {
const { store } = this.state;
const { dispatch } = store;
- const { showAvatar, showJoinActions } = this.props;
+ const { showAvatar, showJoinActions, showSkipPrejoin } = this.props;
super._navigate({
component: Prejoin,
props: {
showAvatar,
- showJoinActions
+ showJoinActions,
+ showSkipPrejoin
}
});