Delete a Recent Chat

Delete 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
flyCallbackFlyResponsecallback to observe the action status
Mirrorfly.deleteRecentChats(jidList: JID_LIST, flyCallBack: (FlyResponse response) {
if(response.isSuccess){
// Update the UI
}
});
caution

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

caution

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