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

bug: jumpToMessage doesn't work with system messages

Open ecemac opened this issue 2 years ago • 1 comments

Describe the bug

I'm not sure if this would count as a bug, but jumpToMessage function in useChannelActionContext does not work with system messages. I was asked to provide a custom system message when I receive one from the backend, with a custom payload. This system message can also be replied to, and it shows up as a QuotedMessage in message list. However when I click on the quoted message with the custom system message, even though it has the correct id, it doesn't jump to the quoted system message.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Custom System Message
  2. Make it replyable with setQuotedMessage
  3. Render it in QuotedMessage
  4. Click the quoted system message

Expected behavior

It should jump to quoted system message, like every regular quoted message does.

Package version

  • stream-chat-react: 10.8.0
  • stream-chat-css: 3.9.1
  • stream-chat-js: 8.6.0

Desktop (please complete the following information):

  • OS: Macbook Pro M1
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 114.0.5735.198

ecemac avatar Oct 05 '23 11:10 ecemac

@ecemac thank you for the report. Let us check this out in the upcoming few days.

MartinCupela avatar Oct 06 '23 07:10 MartinCupela

:tada: This issue has been resolved in version 11.20.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

stream-ci-bot avatar Jun 07 '24 18:06 stream-ci-bot