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.
#
Mute ChatTo Mute the chat use below method which disables the notification for the chat when the new messages are received or any action on chat.
Status | Description | Type | Required |
---|---|---|---|
TO_JID | JID of the To User | JID String | true |
IS_MUTED | true for muting the chat, false for removing | Boolean | true |
#
Get Mute StatusTo determine if a particular user is muted, use the method below. It returns the mute status of the specified user, if the user is muted return 1 else return 0.
Status | Description | Type | Required |
---|---|---|---|
TO_JID | JID of the To User | JID String | true |