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