Parcourir la source

fix: convo mode

Timothy J. Baek il y a 1 an
Parent
commit
f9f1d9d2ad
1 fichiers modifiés avec 11 ajouts et 1 suppressions
  1. 11 1
      src/lib/components/chat/Settings/Voice.svelte

+ 11 - 1
src/lib/components/chat/Settings/Voice.svelte

@@ -40,7 +40,17 @@
 
 	const toggleConversationMode = async () => {
 		conversationMode = !conversationMode;
-		saveSettings({ conversationMode: conversationMode });
+
+		if (conversationMode) {
+			responseAutoPlayback = true;
+			speechAutoSend = true;
+		}
+
+		saveSettings({
+			conversationMode: conversationMode,
+			responseAutoPlayback: responseAutoPlayback,
+			speechAutoSend: speechAutoSend
+		});
 	};
 
 	const toggleResponseAutoPlayback = async () => {