chatscope / chatscope/chat-ui-kit-react

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

Open
#100 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
1.8k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

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…]()

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.