stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

bug: sending a message larger than 5000 characters as a start of a thread results in an error.

Open petyosi opened this issue 3 years ago • 0 comments

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:

  1. Go to https://codesandbox.io/s/stream-chat-react-tutorial-vq5ntv?file=/src/App.tsx
  2. Send a message
  3. Open a thread reply to it - should be a new thread.
  4. 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

image

petyosi avatar Apr 29 '22 11:04 petyosi