deleteMessagesForEveryone method
Implementation
@override
Future<dynamic> deleteMessagesForEveryone(String jid, String chatType, List<String> messageIds, bool? isMediaDelete) async {
dynamic messageDeleteResponse;
try {
messageDeleteResponse = await mirrorFlyMethodChannel
.invokeMethod('deleteMessagesForEveryone', {"jid": jid, "chat_type": chatType, "isMediaDelete": isMediaDelete, "message_ids": messageIds});
LogMessage.d("deleteMessagesForEveryone Response ", " $messageDeleteResponse");
return messageDeleteResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}