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.
|
||||
*/
|
||||
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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue