chat-ui-kit-react icon indicating copy to clipboard operation
chat-ui-kit-react copied to clipboard

Message input adds   at the end of the message when a space is there

Open jimmykane opened this issue 1 year ago • 1 comments

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 avatar Apr 25 '23 13:04 jimmykane

@jimmykane Please check this issue for an explanation: https://github.com/chatscope/chat-ui-kit-react/issues/91

supersnager avatar Apr 26 '23 05:04 supersnager