mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
Update TextChat.jsx
This commit is contained in:
parent
6583877cb3
commit
9a3e67fcd2
1 changed files with 7 additions and 7 deletions
|
@ -27,13 +27,13 @@ export default function TextChat({ isSearchView = false }) {
|
||||||
const { conversationId, jailbreak } = conversation || {};
|
const { conversationId, jailbreak } = conversation || {};
|
||||||
const { isSpeechSupported, isListening, text: speechText } = useSpeechRecognition(ask);
|
const { isSpeechSupported, isListening, text: speechText } = useSpeechRecognition(ask);
|
||||||
|
|
||||||
useEffect(() => {
|
//useEffect(() => {
|
||||||
if (isListening && speechText) {
|
// if (isListening && speechText) {
|
||||||
setText(speechText);
|
// setText(speechText);
|
||||||
} else {
|
// } else {
|
||||||
setText('');
|
// setText('');
|
||||||
}
|
// }
|
||||||
}, [speechText, isListening, setText]);
|
//}, [speechText, isListening, setText]);
|
||||||
|
|
||||||
// auto focus to input, when enter a conversation.
|
// auto focus to input, when enter a conversation.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue