mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 19:00:13 +01:00
convo selection handling in progress
This commit is contained in:
parent
c794287ced
commit
d35ed31b20
5 changed files with 32 additions and 10 deletions
|
|
@ -43,14 +43,15 @@ export default function TextChat({
|
|||
messages,
|
||||
setMessages,
|
||||
reloadConvos,
|
||||
conversation = null
|
||||
convo,
|
||||
setConvo,
|
||||
}) {
|
||||
const [text, setText] = useState('');
|
||||
const [convo, setConvo] = useState({ conversationId: null, parentMessageId: null });
|
||||
// const [convo, setConvo] = useState({ conversationId: null, parentMessageId: null });
|
||||
|
||||
if (!!conversation) {
|
||||
setConvo(conversation);
|
||||
}
|
||||
// if (!!conversation) {
|
||||
// setConvo(conversation);
|
||||
// }
|
||||
|
||||
const handleKeyPress = (e) => {
|
||||
if (e.key === 'Enter' && e.shiftKey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue