getRecentChatOf method

  1. @override
Future<String> getRecentChatOf(
  1. String jid
)
override

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