chat-ui-kit-react
chat-ui-kit-react copied to clipboard
Message input adds at the end of the message when a space is there
Check the data that the MessageInput is sending when a space is added at the end of the message..
function onSend(message) {
debugger;
setMessages(__spreadArray(__spreadArray([], messages, true), [
{
role: 'user',
content: message,
created_at: dayjs().utc().toISOString(),
},
], false));
setIsSending(true);
addMessage(message);
}
```
![Uploading Screenshot 2023-04-25 at 16.19.28.png…]()
@jimmykane Please check this issue for an explanation: https://github.com/chatscope/chat-ui-kit-react/issues/91