deleteRecentChats static method

Future<void> deleteRecentChats({
  1. required List<String> jidList,
  2. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Deletes recent chats for the specified list of JIDs.

This method allows you to delete recent chats for the specified list of JIDs from the Mirrorfly platform.

The jidList parameter is a required list of strings containing the JIDs of the chats to be deleted.

The flyCallBack parameter is a function that will be called upon completion of the operation. It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.

Example:

Mirrorfly.deleteRecentChats(jidList: ['user1@example.com', 'user2@example.com'],flyCallBack: (response){
});

Implementation

static Future<void> deleteRecentChats(
    {required List<String> jidList,
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance
      .deleteRecentChats(jidList, flyCallBack);
}