We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa59b32 commit d8fa0f4Copy full SHA for d8fa0f4
1 file changed
src/lib/components/chat/Messages/ResponseMessage.svelte
@@ -202,7 +202,7 @@
202
const stopAudio = () => {
203
try {
204
speechSynthesis.cancel();
205
- $audioQueue.stop();
+ $audioQueue?.stop();
206
} catch {}
207
208
if (speaking) {
@@ -1015,7 +1015,7 @@
1015
</button>
1016
</Tooltip>
1017
1018
- {#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)}
+ {#if !readOnly && ($user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true))}
1019
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
1020
<button
1021
aria-label={$i18n.t('Read Aloud')}
0 commit comments