Skip to content

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

fix(ToolbarToggle): restore call overlay to the timeout check

paweldomas8c426e8bb75b
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index 94292d4470..ea157e8b30 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -1448,6 +1448,15 @@ UI.isOverlayVisible = function () {
|| GumPermissionsOverlay.isVisible();
};
+/**
+ * Indicates if the ring overlay is currently visible.
+ *
+ * @returns {*|boolean} {true} if the ring overlay is visible, {false} otherwise
+ */
+UI.isRingOverlayVisible = function () {
+ return RingOverlay.isVisible();
+};
+
/**
* Shows browser-specific overlay with guidance how to proceed with gUM prompt.
* @param {string} browser - name of browser for which to show the guidance
diff --git a/modules/UI/toolbars/ToolbarToggler.js b/modules/UI/toolbars/ToolbarToggler.js
index a45d46fb58..05ff316fb4 100644
--- a/modules/UI/toolbars/ToolbarToggler.js
+++ b/modules/UI/toolbars/ToolbarToggler.js
@@ -36,6 +36,7 @@ function hideToolbar(force) { // eslint-disable-line no-unused-vars
if (force !== true &&
(Toolbar.isHovered()
+ || APP.UI.isRingOverlayVisible()
|| SideContainerToggler.isVisible())) {
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
} else {