diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index dc672e195..e87487e8f 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -2,7 +2,7 @@ import { SvelteFlowProvider } from '@xyflow/svelte'; import { slide } from 'svelte/transition'; - import { onMount } from 'svelte'; + import { onDestroy, onMount } from 'svelte'; import { mobile, showControls, showCallOverlay, showOverview } from '$lib/stores'; import Modal from '../common/Modal.svelte'; @@ -45,6 +45,10 @@ mediaQuery.removeEventListener('change', handleMediaQuery); }; }); + + onDestroy(() => { + showControls.set(false); + });