Skip to content

Commit d8fa0f4

Browse files
committed
refac
1 parent aa59b32 commit d8fa0f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/chat/Messages/ResponseMessage.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
const stopAudio = () => {
203203
try {
204204
speechSynthesis.cancel();
205-
$audioQueue.stop();
205+
$audioQueue?.stop();
206206
} catch {}
207207
208208
if (speaking) {
@@ -1015,7 +1015,7 @@
10151015
</button>
10161016
</Tooltip>
10171017

1018-
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)}
1018+
{#if !readOnly && ($user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true))}
10191019
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
10201020
<button
10211021
aria-label={$i18n.t('Read Aloud')}

0 commit comments

Comments
 (0)