Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(lobby) disable invite from lobby screen fix #9209 (#9417)
Calinteodor487da8f23119
diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.js b/react/features/base/premeeting/components/web/PreMeetingScreen.jsindex a718d1d74e..47a7d2e768 100644--- a/react/features/base/premeeting/components/web/PreMeetingScreen.js+++ b/react/features/base/premeeting/components/web/PreMeetingScreen.js@@ -29,6 +29,11 @@ type Props = {*/name?: string,+ /**+ * Indicates whether the copy url button should be shown+ */+ showCopyUrlButton: boolean,+/*** Indicates whether the avatar should be shown when video is off*/@@ -77,6 +82,7 @@ export default class PreMeetingScreen extends PureComponent<Props> {*/static defaultProps = {showAvatar: true,+ showCopyUrlButton: true,showConferenceInfo: true};@@ -86,8 +92,17 @@ export default class PreMeetingScreen extends PureComponent<Props> {* @inheritdoc*/render() {- const { name, showAvatar, showConferenceInfo, title, videoMuted, videoTrack, visibleButtons } = this.props;- const showSharingButton = allowUrlSharing();+ const {+ name,+ showAvatar,+ showConferenceInfo,+ showCopyUrlButton,+ title,+ videoMuted,+ videoTrack,+ visibleButtons+ } = this.props;+ const showSharingButton = allowUrlSharing() && showCopyUrlButton;return (<divdiff --git a/react/features/lobby/components/AbstractLobbyScreen.js b/react/features/lobby/components/AbstractLobbyScreen.jsindex 446edb507d..bb8fd1a400 100644--- a/react/features/lobby/components/AbstractLobbyScreen.js+++ b/react/features/lobby/components/AbstractLobbyScreen.js@@ -3,6 +3,7 @@import React, { PureComponent } from 'react';import { getConferenceName } from '../../base/conference';+import { getFeatureFlag, INVITE_ENABLED } from '../../base/flags';import { getLocalParticipant } from '../../base/participants';import { getFieldValue } from '../../base/react';import { updateSettings } from '../../base/settings';@@ -56,6 +57,11 @@ export type Props = {*/dispatch: Function,+ /**+ * Indicates whether the copy url button should be shown+ */+ showCopyUrlButton: boolean,+/*** Function to be used to translate i18n labels.*/@@ -369,8 +375,11 @@ export default class AbstractLobbyScreen<P: Props = Props> extends PureComponentexport function _mapStateToProps(state: Object): $Shape<Props> {const localParticipant = getLocalParticipant(state);const participantId = localParticipant?.id;+ const inviteEnabledFlag = getFeatureFlag(state, INVITE_ENABLED, true);+ const { disableInviteFunctions } = state['features/base/config'];const { knocking, passwordJoinFailed } = state['features/lobby'];const { iAmSipGateway } = state['features/base/config'];+ const showCopyUrlButton = inviteEnabledFlag || !disableInviteFunctions;return {_knocking: knocking,@@ -379,6 +388,7 @@ export function _mapStateToProps(state: Object): $Shape<Props> {_participantId: participantId,_participantName: localParticipant?.name,_passwordJoinFailed: passwordJoinFailed,- _renderPassword: !iAmSipGateway+ _renderPassword: !iAmSipGateway,+ showCopyUrlButton};}diff --git a/react/features/lobby/components/web/LobbyScreen.js b/react/features/lobby/components/web/LobbyScreen.jsindex 7a4ee5792f..7d796f23d9 100644--- a/react/features/lobby/components/web/LobbyScreen.js+++ b/react/features/lobby/components/web/LobbyScreen.js@@ -20,8 +20,12 @@ class LobbyScreen extends AbstractLobbyScreen {* @inheritdoc*/render() {+ const { showCopyUrlButton, t } = this.props;+return (- <PreMeetingScreen title = { this.props.t(this._getScreenTitleKey()) }>+ <PreMeetingScreen+ showCopyUrlButton = { showCopyUrlButton }+ title = { t(this._getScreenTitleKey()) }>{ this._renderContent() }</PreMeetingScreen>);