stream-chat-react
stream-chat-react copied to clipboard
bug: sending a message larger than 5000 characters as a start of a thread results in an error.
Describe the bug
A message over 5000 characters as an initial reply in a thread results in the wrong state.
To Reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/stream-chat-react-tutorial-vq5ntv?file=/src/App.tsx
- Send a message
- Open a thread reply to it - should be a new thread.
- Send a message with more than 5000 characters.
Rather than displaying the "The message you are trying to send is larger than 5000 characters", the message is stuck in sending state. There's also a replies request that returns 400.
Expected behavior
An error message should be presented (red, with the correct wording).
Screenshots