forwardMessages method

  1. @override
Future forwardMessages(
  1. List<String> messageIds,
  2. String tojid,
  3. String chattype
)
override

Implementation

@override
Future<dynamic> forwardMessages(
    List<String> messageIds, String tojid, String chattype) async {
  //forwardMessage
  dynamic forwardMessageResponse;
  try {
    forwardMessageResponse = await mirrorFlyMethodChannel.invokeMethod(
        'forwardMessages',
        {"message_ids": messageIds, "to_jid": tojid, "chat_type": chattype});
    debugPrint("forwardMessages Response ==> $forwardMessageResponse");
    return forwardMessageResponse;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}