From e30b0306f9955b317d0c5a3a85b4c8a72b90778d Mon Sep 17 00:00:00 2001 From: Mihaela Dumitru Date: Thu, 6 Oct 2022 16:01:45 +0300 Subject: [PATCH] fix(whiteboard) account for moderation rights (#12323) --- react/features/toolbox/components/web/Toolbox.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsx index b38b00466..078ffc272 100644 --- a/react/features/toolbox/components/web/Toolbox.tsx +++ b/react/features/toolbox/components/web/Toolbox.tsx @@ -103,7 +103,7 @@ import { VideoQualityButton, VideoQualityDialog } from '../../../video-quality/c import { VideoBackgroundButton, toggleBackgroundEffect } from '../../../virtual-background'; import { VIRTUAL_BACKGROUND_TYPE } from '../../../virtual-background/constants'; import WhiteboardButton from '../../../whiteboard/components/web/WhiteboardButton'; -import { isWhiteboardEnabled } from '../../../whiteboard/functions'; +import { isWhiteboardButtonVisible } from '../../../whiteboard/functions'; import { setFullScreen, setHangupMenuVisible, @@ -1558,7 +1558,7 @@ function _mapStateToProps(state: IState, ownProps: Partial) { _toolbarButtons: toolbarButtons, _virtualSource: state['features/virtual-background'].virtualSource, _visible: isToolboxVisible(state), - _whiteboardEnabled: isWhiteboardEnabled(state) + _whiteboardEnabled: isWhiteboardButtonVisible(state) }; }