From 23ba382f049341c594a85e8f3d7ea5a29efbef1f Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:59:40 -0800 Subject: [PATCH] Fix call More Options menu to not autohide --- ts/components/CallScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/components/CallScreen.tsx b/ts/components/CallScreen.tsx index 65289c6d4e..055125d259 100644 --- a/ts/components/CallScreen.tsx +++ b/ts/components/CallScreen.tsx @@ -263,14 +263,14 @@ export function CallScreen({ }, [setLocalPreview, setRendererCanvas]); useEffect(() => { - if (!showControls || stickyControls || controlsHover) { + if (!showControls || showMoreOptions || stickyControls || controlsHover) { return noop; } const timer = setTimeout(() => { setShowControls(false); }, 5000); return clearTimeout.bind(null, timer); - }, [showControls, stickyControls, controlsHover]); + }, [showControls, showMoreOptions, stickyControls, controlsHover]); useEffect(() => { const handleKeyDown = (event: KeyboardEvent): void => {