deleteMessagesForEveryone method

  1. @override
Future deleteMessagesForEveryone(
  1. String jid,
  2. String chatType,
  3. List<String> messageIds,
  4. bool? isMediaDelete,
)
override

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;
  }
}