fix(toolbox) never show the toolbox for recorders

This commit is contained in:
Saúl Ibarra Corretgé 2022-02-04 10:55:34 +01:00 committed by Saúl Ibarra Corretgé
parent 8ccd7e92e0
commit aaa26f8c7d
1 changed files with 3 additions and 3 deletions

View File

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