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(virtual-background): Check if virtual background is disabled on premeeting.
tudordan7c765e08aa1e4
diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.js b/react/features/base/premeeting/components/web/PreMeetingScreen.jsindex 0b9f0b801a..27e44c8ebf 100644--- a/react/features/base/premeeting/components/web/PreMeetingScreen.js+++ b/react/features/base/premeeting/components/web/PreMeetingScreen.js@@ -57,7 +57,12 @@ type Props = {/*** The video track to render as preview (if omitted, the default local track will be rendered).*/- videoTrack?: Object+ videoTrack?: Object,++ /**+ * Array with the buttons which this Toolbox should display.+ */+ visibleButtons?: Array<string>}/**@@ -81,7 +86,7 @@ export default class PreMeetingScreen extends PureComponent<Props> {* @inheritdoc*/render() {- const { name, showAvatar, showConferenceInfo, title, videoMuted, videoTrack } = this.props;+ const { name, showAvatar, showConferenceInfo, title, videoMuted, videoTrack, visibleButtons } = this.props;const showSharingButton = allowUrlSharing();return (@@ -116,7 +121,9 @@ export default class PreMeetingScreen extends PureComponent<Props> {<div className = 'toolbox-content-items'><AudioSettingsButton visible = { true } /><VideoSettingsButton visible = { true } />- <VideoBackgroundButton visible = { checkBlurSupport() } />+ { ((visibleButtons && visibleButtons.includes('select-background'))+ || (visibleButtons && visibleButtons.includes('videobackgroundblur')))+ && <VideoBackgroundButton visible = { checkBlurSupport() } /> }</div></div></div>diff --git a/react/features/prejoin/components/Prejoin.js b/react/features/prejoin/components/Prejoin.jsindex 648cd5f6d4..f4b316ffb9 100644--- a/react/features/prejoin/components/Prejoin.js+++ b/react/features/prejoin/components/Prejoin.js@@ -4,6 +4,7 @@ import InlineDialog from '@atlaskit/inline-dialog';import React, { Component } from 'react';import { getRoomName } from '../../base/conference';+import { getToolbarButtons } from '../../base/config';import { translate } from '../../base/i18n';import { Icon, IconArrowDown, IconArrowUp, IconPhone, IconVolumeOff } from '../../base/icons';import { isVideoMutedByUser } from '../../base/media';@@ -127,6 +128,11 @@ type Props = {* The JitsiLocalTrack to display.*/videoTrack: ?Object,++ /**+ * Array with the buttons which this Toolbox should display.+ */+ visibleButtons: Array<string>};type State = {@@ -295,7 +301,8 @@ class Prejoin extends Component<Props, State> {showConferenceInfo,showJoinActions,t,- videoTrack+ videoTrack,+ visibleButtons} = this.props;const { _closeDialog, _onDropdownClose, _onJoinButtonClick, _onOptionsClick, _setName, _showDialog } = this;@@ -310,7 +317,8 @@ class Prejoin extends Component<Props, State> {skipPrejoinButton = { this._renderSkipPrejoinButton() }title = { t('prejoin.joinMeeting') }videoMuted = { !showCameraPreview }- videoTrack = { videoTrack }>+ videoTrack = { videoTrack }+ visibleButtons = { visibleButtons }>{showJoinActions && (<div className = 'prejoin-input-area-container'><div className = 'prejoin-input-area'>@@ -440,7 +448,8 @@ function mapStateToProps(state, ownProps): Object {hasJoinByPhoneButton: isJoinByPhoneButtonVisible(state),showCameraPreview: !isVideoMutedByUser(state),showConferenceInfo,- videoTrack: getLocalJitsiVideoTrack(state)+ videoTrack: getLocalJitsiVideoTrack(state),+ visibleButtons: getToolbarButtons(state)};}