Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(toolbar) add flag for autohiding while chat open (#11104)

Avram Tudorfaac45b5bc3f
diff --git a/config.js b/config.js
index 87805d42a9..ef5a54a20c 100644
--- a/config.js
+++ b/config.js
@@ -635,7 +635,9 @@ var config = {
// timeout: 4000,
// // Moved from interfaceConfig.TOOLBAR_ALWAYS_VISIBLE
// // Whether toolbar should be always visible or should hide after x miliseconds.
- // alwaysVisible: false
+ // alwaysVisible: false,
+ // // Indicates whether the toolbar should still autohide when chat is open
+ // autoHideWhileChatIsOpen: false
// },
// Toolbar buttons which have their click/tap event exposed through the API on
diff --git a/react/features/toolbox/actions.web.js b/react/features/toolbox/actions.web.js
index 6b4cb6839d..c49cf2c544 100644
--- a/react/features/toolbox/actions.web.js
+++ b/react/features/toolbox/actions.web.js
@@ -74,7 +74,7 @@ export function fullScreenChanged(fullScreen: boolean) {
export function hideToolbox(force: boolean = false): Function {
return (dispatch: Dispatch<any>, getState: Function) => {
const state = getState();
- const { toolbarConfig: { alwaysVisible } } = state['features/base/config'];
+ const { toolbarConfig: { alwaysVisible, autoHideWhileChatIsOpen } } = state['features/base/config'];
const { hovered } = state['features/toolbox'];
const toolbarTimeout = getToolbarTimeout(state);
@@ -89,7 +89,7 @@ export function hideToolbox(force: boolean = false): Function {
if (!force
&& (hovered
|| state['features/invite'].calleeInfoVisible
- || state['features/chat'].isOpen
+ || (state['features/chat'].isOpen && !autoHideWhileChatIsOpen)
|| document.querySelector(focusSelector))) {
dispatch(
setToolboxTimeout(