Moderation
Block User#
Block User method uses to block the User from sending a message to us, it also hides our information from them. Use the below method by passing the JID of the user whom we are blocking.
Request Param#
| Status | Description | Type | Required |
|---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
Unblock User#
To unblock the User use the below method.
Request Param#
| Status | Description | Type | Required |
|---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
info
When a blockUser or unblockUser messageListener event will be triggered with response object of user blocked me / User unblocked me. Based on this event, update the message and refresh the UI.
Get Users I Blocked#
To get the list of Users whom we blocked, send a request as described below.
Response Format#
Note: Please run this method whenever you call the connect method to update your blocked users list in the local database.
Get Users Who Blocked Me#
To get the list of Users who blocked Us, send a request as described below.
Response Format#
Note: Please run this method whenever you call the connect method to update the list of users you have blocked in the local database.