sendContactMessage method

  1. @override
Future sendContactMessage(
  1. List<String> contactList,
  2. String jid,
  3. String contactName,
  4. String replyMessageId,
)
override

Implementation

@override
Future<dynamic> sendContactMessage(List<String> contactList, String jid,
    String contactName, String replyMessageId) async {
  dynamic contactResponse;
  try {
    contactResponse =
        await mirrorFlyMethodChannel.invokeMethod('sendContactMessage', {
      "contact_list": contactList,
      "jid": jid,
      "contact_name": contactName,
      "replyMessageId": replyMessageId
    });
    // debugPrint("mediaResponse ==> $readReceiptResponse");
    return contactResponse;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}