Moderation
#
Block UserBlock 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 ParamStatus | Description | Type | Required |
---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
#
Unblock UserTo unblock the User use the below method.
#
Request ParamStatus | 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 BlockedTo get the list of Users whom we blocked, send a request as described below.
#
Response FormatNote: Please run this method whenever you call the connect method to update your blocked users list in the local database.
#
Get Users Who Blocked MeTo get the list of Users who blocked Us, send a request as described below.
#
Response FormatNote: Please run this method whenever you call the connect method to update the list of users you have blocked in the local database.