Delete a Recent chat

Delete Single/Multiple Recent Chat#

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

    ChatManager.deleteRecentChats(jids: JIDS) { (isSuccess, flyerror, resultDict) in
    }

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

    ArgumentTypeDescription
    JIDS[String]jid of the user/group
    CALLBACKFlyCompletionHandlerFlyCompletionHandler used as completion Handler
    caution

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

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