feat(#8): TTS-голосовые подсказки в окне напоминания (opt-in)

This commit is contained in:
AnRil
2026-05-22 13:36:29 +07:00
parent 72e54c579d
commit 50c56fec79
6 changed files with 127 additions and 2 deletions

View File

@@ -244,6 +244,11 @@ export function validateSettingsPatch(raw: unknown): Partial<Settings> | null {
if (v === undefined) return null
out.soundEnabled = v
}
if ('voicePromptsEnabled' in raw) {
const v = bool(raw.voicePromptsEnabled)
if (v === undefined) return null
out.voicePromptsEnabled = v
}
if ('notificationMode' in raw) {
const v = oneOf(raw.notificationMode, VALID_NOTIFY)
if (v === undefined) return null