forwardMessagesToMultipleUsers method

  1. @override
Future forwardMessagesToMultipleUsers(
  1. List<String> messageIds,
  2. List<String> userList
)
override

Implementation

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