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