getMessagesOfJid method
Implementation
@override
Future<dynamic> getMessagesOfJid(String jid) async {
//getChatHistory
dynamic chatResponse;
try {
chatResponse = await mirrorFlyMethodChannel.invokeMethod('getMessagesOfJid', {"JID": jid});
LogMessage.d("user Chat Result ", " $chatResponse");
// List<ChatMessageModel> chatMessageModel = chatMessageModelFromJson(chatResponse);
// return chatMessageModel;
return chatResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}