getRecentChatOf method
This method is used to get the recent chat message of a user using JID.
Implementation
@override
Future<String> getRecentChatOf(String jid) async {
String? response;
try {
response = await mirrorFlyMethodChannel
.invokeMethod('getRecentChatOf', {"jid": jid});
return convertRecentChatFromJson(response);
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}