Hello @kl2000,
So, If I block a user using CometChat.blockUser()
and if that user sends a message in a Group
. Then while fetching the Conversations
using the ConversationsRequestBuilder
the last message would be a message sent from a user whom the logged-in user has blocked. If yes, then you would have to add a custom filter and hide the last message.
Can you please let us know what exactly are you doing to remove the last message if it was sent from a blocked user? We would like to know so that if a better solution is possible, we’ll be glad to let you know.
Currently, it is not possible to hide the last message if that user is blocked by the logged-in user. I have created a feature request and added your email to the list of subscribers. You will get an update via email if/when the product team decides to take this up for development.
You can check the feature request here.
Warm Regards,
CometChat Pro
Mayur Bhandari