fix(toolbox) never show the toolbox for recorders
This commit is contained in:
parent
8ccd7e92e0
commit
aaa26f8c7d
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue