mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
Update TextChat.jsx
This commit is contained in:
parent
9a3e67fcd2
commit
6033eb3ed1
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