Skip to content

Commit

Permalink
fix: autotts triggering while tts is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Feb 24, 2024
1 parent f36cd33 commit 848b648
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions constants/Chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export namespace Chats {
.save()
.then(() => {
// AUTO TTS
const auto = mmkv.getBoolean(Global.TTSAuto)
if (auto) {
if (mmkv.getBoolean(Global.TTSEnable) && mmkv.getBoolean(Global.TTSAuto)) {
Logger.log(`Automatically using TTS`)
mmkv.set(Global.TTSAutoStart, JSON.stringify(true))
}
Expand Down

0 comments on commit 848b648

Please sign in to comment.