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