getArchivedChatsList method
dynamic
getArchivedChatsList()
Implementation
getArchivedChatsList() async {
await Mirrorfly.getArchivedChatList(flyCallBack: (FlyResponse response) {
mirrorFlyLog("archived", response.toString());
if (response.isSuccess && response.hasData) {
var data = recentChatFromJson(response.data);
///removing recent chat item if the recent chat has a self chat
data.data
?.removeWhere((chat) => chat.jid == SessionManagement.getUserJID());
archivedChats(data.data!);
}
}).catchError((error) {
debugPrint("issue===> $error");
});
}