fix(whiteboard) account for moderation rights (#12323)

This commit is contained in:
Mihaela Dumitru 2022-10-06 16:01:45 +03:00 committed by GitHub
parent 11e13e1849
commit e30b0306f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ import { VideoQualityButton, VideoQualityDialog } from '../../../video-quality/c
import { VideoBackgroundButton, toggleBackgroundEffect } from '../../../virtual-background'; import { VideoBackgroundButton, toggleBackgroundEffect } from '../../../virtual-background';
import { VIRTUAL_BACKGROUND_TYPE } from '../../../virtual-background/constants'; import { VIRTUAL_BACKGROUND_TYPE } from '../../../virtual-background/constants';
import WhiteboardButton from '../../../whiteboard/components/web/WhiteboardButton'; import WhiteboardButton from '../../../whiteboard/components/web/WhiteboardButton';
import { isWhiteboardEnabled } from '../../../whiteboard/functions'; import { isWhiteboardButtonVisible } from '../../../whiteboard/functions';
import { import {
setFullScreen, setFullScreen,
setHangupMenuVisible, setHangupMenuVisible,
@ -1558,7 +1558,7 @@ function _mapStateToProps(state: IState, ownProps: Partial<Props>) {
_toolbarButtons: toolbarButtons, _toolbarButtons: toolbarButtons,
_virtualSource: state['features/virtual-background'].virtualSource, _virtualSource: state['features/virtual-background'].virtualSource,
_visible: isToolboxVisible(state), _visible: isToolboxVisible(state),
_whiteboardEnabled: isWhiteboardEnabled(state) _whiteboardEnabled: isWhiteboardButtonVisible(state)
}; };
} }