bug: Pinning a message changes the last updated message in Channel List Preview
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:
- Go to 'any channel and find a message that is not the last message recieved.'
- Click on 'click on pinned message'
- 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
Thank you for the report, we will investigate this further.
@petyosi I want to work on this task. Please assign the task to me to work on it.
The bug is not present in the SDK anymore.