Delete a Recent Chat

Delete single recent chat#

To delete a recent chat of a user or a group call the method.

FlyCore.deleteRecentChat(JID);

We can delete a archived recent chat using this method too.

ArgumentsTypeDescription
JIDStringjid of the user/group
caution

Deleting a recent chat will delete the all the conversation for that user/group including favorite messages.

caution

If delete recent chat feature unavailable for your plan then it will throw 403 exception.

Delete mulitple recent chat#

You can delete the messages of multiple chats including group,brodcast by using the below method.

ArgumentTypeDescription
JID_LISTList<String>List of chat jid whose conversations to be deleted
CALLBACKChatActionListenercallback to observe the action status
ChatManager.deleteRecentChats(JID_LIST, (isSuccess, message) -> {
});
caution

If delete chat feature unavailable for your plan then it will throw 403 exception.