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});
debugPrint("report Result ==> $response");
return response;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
return false;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
return false;
}
}