Other Chat Feature

Clear chat messages#

Note : If Clear chat feature unavailable for your plan then it will not display in FlyChatFragment.

Clear chat messages is a feature which allows users to delete the chat messages to reduce the storage usage. if you want to clear the messages for the entire chat, or multiple chats then you can refer the below image. it will also delete the downloaded media files from your local storage.

clear_chat

Copy chat messages#

Copy chat messages is a feature which allows users to Copy the chat text and image/video captions messages in clipboard. if you want to copy the text and image/video captions messages in chat conversation screen then you can refer the below image.

copy_chat

Delete chat messages#

Note : If Delete single/multiple message feature unavailable for your plan then it will not display in FlyChatFragment.

Delete chat messages is a feature which allows users to delete the chat messages to reduce the storage usage. if you want to delete the messages for the one-to-one chat, or group chat then you can use below options.

Delete for me#

If you want to delete the single or multiple messages of the sender in one-to-one chat or group-chat then you can use delete for me. you can refer the below image.

delete_me

Delete for everyone#

If you want to delete the single or multiple messages of both sender and receiver in one-to-one chat or group-chat then you can use delete for everyone. you can refer the below image.

delete_everyone

Note : The 'delete for everyone' option will be displayed for 30 seconds since the user sent the message.

Translate chat messages#

Translate messages is a feature which allows users to translate the received text, image and video caption message. If you want to translate the text and image/video captions messages in the chat conversation screen, then you can refer the below image.

Language Selection#

langugage_selection

Message Translate#

message_translate

Mute user/Group#

If you want to mute the notifications for the chat of a user or a group, you can refer the below screenshot.

Mute/Unmute Recent Chat#

image_preview

Mute/Unmute Single or Group Chat#

image_preview

Block a User#

If you want to block a user from one-to-one chat, you can refer the below screenshot.

image_block

UnBlock a User#

If you want to unblock a user from one-to-one chat, you can refer the below screenshot.

image_unblock

caution

Blocking and Unblocking valid for Single chat user only not for Group chat.

BlockedList#

Blocked users are listed in blocked List Section in setting screen. if you want to unblock a user, you can refer the below screenshot.

image_unblocksetting

Logout#

The below method to logout a user.

Note : Declare MirrorFlyUIKit.loginActivity in application class to redirect to login page while user logout from application.

MirrorFlyUIKit.userLogout(activity, object : LogoutCallBack {
override fun logoutResponse(isSuccess: Boolean, throwable: Throwable?, data: HashMap<String, Any>) {
if (isSuccess) {
Log.d("TAG", "userLogout: isSuccess = $isSuccess")
} else {
Log.e("TAG", "userLogout: Failure, e = $data")
}
}
})

Logout in Settings#

User can logout from application using logout section in settings, you can refer the below screenshot.

Note : Declare isLogoutEnable has false in override methods of MirrorFlyUIKit.initFlySDK in application class to hide default logout option in settings screen.

image_logout

Report User/Group Messages#

This 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. you can refer below screenshot User/Group report messages.

Report in Chat#

report_chat

Report in User/Group Info#

report_info

Admin Block#

This Feature is used by admin to block user from admin panel, the blocked user is restricted and redirect to login page. Blocked user cant login till admin unblock the user. you can refer below screenshot admin block.

admin_block

ArgumentTypeDescription
ic_logodrawableset your logo has ic_logo and paste it in drawable folder
MirrorFlyUIKit.SUPPORT_MAILStringset you admin email for user support