diff --git a/react/features/toolbox/functions.web.js b/react/features/toolbox/functions.web.js index a13160ea9..de523a7f4 100644 --- a/react/features/toolbox/functions.web.js +++ b/react/features/toolbox/functions.web.js @@ -41,7 +41,7 @@ export function isButtonEnabled(name: string, state: Object) { * otherwise. */ export function isToolboxVisible(state: Object) { - const { iAmSipGateway, toolbarConfig } = state['features/base/config']; + const { iAmRecorder, iAmSipGateway, toolbarConfig } = state['features/base/config']; const { alwaysVisible } = toolbarConfig || {}; const { timeoutID, @@ -49,8 +49,8 @@ export function isToolboxVisible(state: Object) { } = state['features/toolbox']; const { audioSettingsVisible, videoSettingsVisible } = state['features/settings']; - return Boolean(!iAmSipGateway && (timeoutID || visible || alwaysVisible - || audioSettingsVisible || videoSettingsVisible)); + return Boolean(!iAmRecorder && !iAmSipGateway + && (timeoutID || visible || alwaysVisible || audioSettingsVisible || videoSettingsVisible)); } /**