reportUserOrMessages method

  1. @override
Future<bool?> reportUserOrMessages(
  1. String jid,
  2. String type,
  3. String? messageId
)
override

Implementation

@override
Future<bool?> reportUserOrMessages(String jid, String type, String? messageId) async {
  bool? response;
  try {
    response =
        await mirrorFlyMethodChannel.invokeMethod<bool>('reportUserOrMessages', {"jid": jid, "chat_type": type, "selectedMessageID": messageId});
    LogMessage.d("report Result ", " $response");
    return response;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    return false;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    return false;
  }
}