Deleted Last Message Still Appears in Chat List Preview
Issue
When the sender deletes the last message in a conversation, the message is correctly removed from the conversation view, but it still appears in the ChannelList (chat list) preview.
Steps to reproduce
- Go to any existing 1:1 chat.
- Send a new message.
- Delete that message (ensure it is the most recent/last message).
- Navigate back to the Chat List (ChannelList).
- Observe that the deleted message still appears in the preview.
Expected behavior
When the last message is deleted:
Project Related Information
Customization
Click To Expand
We are using customized components for:
- Chat
- ChannelList
- Channel
- MessageList
The issue occurs specifically in the ChannelList preview rendering logic.
Offline support
Environment
Click To Expand
package.json:
react-native info output:
Additional context
The conversation screen updates correctly after deletion, but the ChannelList preview does not.
This may be related to:
- Deleted messages still being present in
channel.state.latestMessages
message.deleted_at not being filtered when rendering preview text
- ChannelList not reacting properly to
message.deleted events
- Last visible message not being recalculated after deletion
Screenshots
Click To Expand
Deleted Last Message Still Appears in Chat List Preview
Issue
When the sender deletes the last message in a conversation, the message is correctly removed from the conversation view, but it still appears in the ChannelList (chat list) preview.
Steps to reproduce
Expected behavior
When the last message is deleted:
The ChannelList preview should update immediately.
It should either:
The deleted message should not appear anywhere in the UI.
Project Related Information
Customization
Click To Expand
We are using customized components for:
The issue occurs specifically in the ChannelList preview rendering logic.
Offline support
Environment
Click To Expand
package.json:# N/Areact-native infooutput:Platform that you're experiencing the issue on:
stream-chat-react-nativeversion you're using that has this issue:Please specify versionDevice/Emulator info:
SpecifySpecifyAdditional context
The conversation screen updates correctly after deletion, but the ChannelList preview does not.
This may be related to:
channel.state.latestMessagesmessage.deleted_atnot being filtered when rendering preview textmessage.deletedeventsScreenshots
Click To Expand