refac
This commit is contained in:
@@ -202,7 +202,7 @@
|
|||||||
const stopAudio = () => {
|
const stopAudio = () => {
|
||||||
try {
|
try {
|
||||||
speechSynthesis.cancel();
|
speechSynthesis.cancel();
|
||||||
$audioQueue.stop();
|
$audioQueue?.stop();
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
if (speaking) {
|
if (speaking) {
|
||||||
@@ -1015,7 +1015,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)}
|
{#if !readOnly && ($user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true))}
|
||||||
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
|
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
|
||||||
<button
|
<button
|
||||||
aria-label={$i18n.t('Read Aloud')}
|
aria-label={$i18n.t('Read Aloud')}
|
||||||
|
|||||||
Reference in New Issue
Block a user