convo selection handling in progress

This commit is contained in:
Danny Avila 2023-02-06 16:28:50 -05:00
parent c794287ced
commit d35ed31b20
5 changed files with 32 additions and 10 deletions

View file

@ -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) {