Hi
I have tested block user’s part in the my unity project.
When i have loaded previous messages after add a user to block in the open channel, have recieved messages without blocked user’s messages in the sample project of unity.
So then, i have tried same thing in my sendbird project, but blocked user’s message have gotten when load previous messages.
i wanna make blocked user’s messages are excepted when loading previous messages in the open channel like sample code.
i attached sample code to help understand. Thanks.
void BlockUser(string temp)
{
SendBirdClient.BlockUserWithUserId(temp, (User user, SendBirdException e) =>
{
if (e != null)
{
return;
// Handle error.
}
}
);
}
void LoadOpenChannelChatHistory()
{
string tempuser = "lost11";
BlockUser(tempuser);
PreviousMessageListQuery query = currentChannel.CreatePreviousMessageListQuery();
ResetOpenChannelContent();
query.Load(15, false, (List<BaseMessage> queryResult, SendBirdException e) => {
if (e != null)
{
Debug.Log(e.Code + ": " + e.Message);
return;
}