From f78e6a5fba3b913900c42f6d8565d58b643c47b9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 7 Jun 2024 21:10:00 -0700 Subject: [PATCH] fix: auto playback --- src/lib/components/chat/Chat.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index eb162d5a2..91e46f4ad 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -751,7 +751,7 @@ copyToClipboard(responseMessage.content); } - if ($settings.responseAutoPlayback) { + if ($settings.responseAutoPlayback && !$showCallOverlay) { await tick(); document.getElementById(`speak-button-${responseMessage.id}`)?.click(); } @@ -977,8 +977,9 @@ copyToClipboard(responseMessage.content); } - if ($settings.responseAutoPlayback) { + if ($settings.responseAutoPlayback && !$showCallOverlay) { await tick(); + document.getElementById(`speak-button-${responseMessage.id}`)?.click(); }