feat(useConfigStore): disable TTS buttons by default until user change this

This commit is contained in:
Bohdan Triapitsyn
2026-02-10 13:00:16 +02:00
parent 263a33ffb2
commit d801ba0abe
+3 -3
View File
@@ -529,13 +529,13 @@ export const useConfigStore = create<ConfigStore>()(
}
return '';
})(),
// Show TTS buttons on messages - load from localStorage or default to true
// Show TTS buttons on messages - disabled by default until user enables it
showMessageTTSButtons: (() => {
if (typeof window !== 'undefined') {
const saved = localStorage.getItem('showMessageTTSButtons');
if (saved === 'false') return false;
if (saved === 'true') return true;
}
return true;
return false;
})(),
// Voice mode enabled - load from localStorage or default to false
voiceModeEnabled: (() => {