Moderation
#
Block a UserTo block a user call the below method.
Argument | Type | Description |
---|---|---|
JID_TO_BLOCK | String | JID of the user |
flyCallback | FlyResponse | callback to observe the action status |
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Unblock a UserTo unblock a user who is blocked already call the below method.
Argument | Type | Description |
---|---|---|
JID_TO_UNBLOCK | String | JID of the user |
flyCallback | FlyResponse | callback to observe the action status |
caution
Blocking and Unblocking valid for Single chat user only not for Group.
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Get user profiles that you blockedTo get the list of chat user profiles that you blocked call the below method.
- Dart
- Response
Argument | Description | Type | |
---|---|---|---|
SERVER_CALL | bool | true to get the synced list from server false to get the list from local data. default value is false | |
flyCallback | FlyResponse | callback to observe the action status |
Note : To make server call internet connection is required
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Get user profiles that blocked youTo get the list of single chat user that blocked you call the below method.
- Dart
- Response
Argument | Type | Description |
---|---|---|
SERVER_CALL | bool | true to get the synced list from server false to get the list from local data. default value is false |
flyCallback | FlyResponse | callback to observe the action status |
Note : To make server call internet connection is required
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Mute user/GroupIf you want to mute the notifications for the chat of a user or a group, you can utilise the below method.
- Dart
- Response
Argument | Type | Description |
---|---|---|
JID | String | jid of the chat user/ group |
MUTE_STATUS | bool | true , if you want to mute notifications for the chat |
#
Mute Chat StatusGet Mute Chat Status to check the archived chat.
info
The Mute chat status will be returned either true
or false
#
Encrypt/Decrypt media filesTo encrypt all media files while uploading to server, call below method to enable media encryption in SDK
Note: If this flag enabled then all type of media files will be encrypted while uploading and stored in server, On receiver side media files will be decrypted while downloading and readable file will be stored in local storage.
#
Report User/Group MessagesThis feature is used to do report the user/group messages by selecting the message or user/group profile. If the user/group is reported by person to admin, the user's last 5 conversations or by selecting along with the selected message and previous 4 messages will be sent to the admin panel based on that chats availability. By using the below method person can achieve the User/Group report messages.
Note : In this method
SELECTED_MID
is optional argument. If person selected a message to report use this param other wise ignore the param.
Argument | Type | Description |
---|---|---|
TO_USER_JID | String | Report User Jid who needs to be reported |
CHAT_TYPE | String | "chat" for single chat, "groupchat" for group chat |
SELECTED_MID | String | Selected Message ID (optional) |
caution
If report chat feature unavailable for your plan then it will throw 403 exception.
#
Handling Banned User/GroupThis feature is used to get the users/groups admin blocked status. So that you can check the user/group available status and communicate with them. If user/group blocked by admin then you will get notify the alert message.
#
Get Own user Admin Block StatusThis method is used to get the live status of own user profile blocked/unblocked by Admin status, so that you will be navigated to show stopper screen if profile blocked by admin.
- Dart
- Response
#
Get Other user/group Admin Block StatusThis method is used to get the live status of other user/group profile blocked/unblocked by Admin status, so that you will be notified the profile status.
- Dart
- Response