Browse Source

fix: convo mode

Timothy J. Baek 1 year ago
parent
commit
f9f1d9d2ad
1 changed files with 11 additions and 1 deletions
  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 () => {