mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat: New config disable feature virtual background (#13580)
* New config disable feature virtual background * Change enableVirtualBackground to disableVirtualBackground in config file and correct lint problems * Fix comment disable virtual background * Change deprecated APP.storage to IReduxState
This commit is contained in:
@@ -23,7 +23,7 @@ import {
|
||||
getAudioDeviceSelectionDialogProps,
|
||||
getVideoDeviceSelectionDialogProps
|
||||
} from '../../../device-selection/functions.web';
|
||||
import { checkBlurSupport } from '../../../virtual-background/functions';
|
||||
import { checkBlurSupport, checkVirtualBackgroundEnabled } from '../../../virtual-background/functions';
|
||||
import { iAmVisitor } from '../../../visitors/functions';
|
||||
import {
|
||||
submitModeratorTab,
|
||||
@@ -141,6 +141,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
|
||||
const enabledNotifications = getNotificationsMap(state);
|
||||
const showNotificationsSettings = Object.keys(enabledNotifications).length > 0;
|
||||
const virtualBackgroundSupported = checkBlurSupport();
|
||||
const enableVirtualBackground = checkVirtualBackgroundEnabled(state);
|
||||
const tabs: IDialogTab<any>[] = [];
|
||||
const _iAmVisitor = iAmVisitor(state);
|
||||
|
||||
@@ -191,7 +192,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
|
||||
});
|
||||
}
|
||||
|
||||
if (virtualBackgroundSupported && !_iAmVisitor) {
|
||||
if (virtualBackgroundSupported && !_iAmVisitor && enableVirtualBackground) {
|
||||
tabs.push({
|
||||
name: SETTINGS_TABS.VIRTUAL_BACKGROUND,
|
||||
component: VirtualBackgroundTab,
|
||||
|
||||
Reference in New Issue
Block a user