updateArchiveUnArchiveChat method
Implementation
@override
Future<bool?> updateArchiveUnArchiveChat(String jid, bool isArchived) async {
bool? res;
try {
res = await mirrorFlyMethodChannel.invokeMethod<bool>(
'updateArchiveUnArchiveChat', {"jid": jid, "isArchived": isArchived});
return res;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
rethrow;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
rethrow;
}
}