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

bug: editing a message with url adds a bogus attachment (image)

Open petyosi opened this issue 3 years ago • 0 comments

Describe the bug

editing a message with url adds a bogus attachment (image).

To Reproduce

Steps to reproduce the behavior:

  1. start the examples/typescript app (not relevant, any vanilla setup works)
  2. send https://youtube.com/ message
  3. edit the message. Change the protocol from https to http.
  4. Submit
  5. Two attachments appear - a plain image and an URL preview.

Expected behavior

Only the URL attachment should remain.

image

If applicable, add screenshots to help explain your problem.

Package version

  • stream-chat-react: 8.1.1
  • stream-chat-css: 6.5.0

petyosi avatar Apr 26 '22 08:04 petyosi