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

bug: Pinning a message changes the last updated message in Channel List Preview

Open thecannabisapp opened this issue 3 years ago • 2 comments

Describe the bug

When a user pin a message, this fires off a message update event. Which the channel list preview has event listeners listening to last message update. So this changes the last message preview in the channel preview list to the pinned message and not the last new message recieved.

Offending file src/components/ChannelPreview/ChannelPreview.tsx

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'any channel and find a message that is not the last message recieved.'
  2. Click on 'click on pinned message'
  3. See channel list preview to 'see the last message preview and time/date has been set to the pinned message instead of showing the last message received.'

Expected behaviour

The Channel list preview should show the last message received, not the last message updated.

Screenshots

If applicable, add screenshots to help explain your problem.

Package version

  • stream-chat-react: 9.5.0

thecannabisapp avatar Sep 07 '22 11:09 thecannabisapp

Thank you for the report, we will investigate this further.

petyosi avatar Sep 07 '22 13:09 petyosi

@petyosi I want to work on this task. Please assign the task to me to work on it.

NwaforAugustine321 avatar Nov 11 '22 13:11 NwaforAugustine321

The bug is not present in the SDK anymore.

MartinCupela avatar Jun 26 '24 11:06 MartinCupela