After blocking a user, ConversationsRequestBuilder().fetchNext() still returns hasBlockedMe and blockedByMe as false.
Thank you for reporting the issue.
We are able to reproduce the issue at our end.
Please follow the Github issue for the further update:
hasBlockedByMe are redundant in conversation list and will be removed.
Thank you for reporting this.
hasBlockedByMe are not returned via REST API for the conversation list.
In the User object of SDK, these keys have a default value set as
As such, these values from User Objects retrieved from the Conversation object should not be used to determine whether the user relationship is blocked.
Whenever user, tries to load a Chat view from the conversation,
CometChat.getUser() needs to be called which returns user details along with the user relationship.
Please feel free to let us know if you face any other issues with CometChat.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.