channel.lastMessage is not cleared properly

[Problem/Question]
// Detailed description of issue.
channel.lastMessage is not cleared properly when last message deleted


// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?
Version which you use here sendbirdcom/products/demos/community

[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.

[Frequency]
// How frequently is this issue occurring?
always

[Current impact]
// How is this currently impacting your implementation?
We see deleted message in the chat preview.

1 Like

I’m unable to reproduce this on an up to date instance of the UIKit. Bug testing should be done in an update version of the UIKit using something like StackBlitz or CodeSandBox

The same error with me

Please delete message of channel which have only a message, error will be happen when channel empty.

This is my code.

Please take a look for the video bellow

What version of the SDK or UIKit are you using?

I’m using JavaScript SDK 4.16.4 with React 18.2.0

It seems to be SDK bug, and we will fix it at v4.16.5

1 Like