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});
    LogMessage.d("forwardMessages Response ", " $forwardMessageResponse");
    return forwardMessageResponse;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}