loadLastMessages method
Implementation
void loadLastMessages(ChatMessageModel chatMessageModel) async {
if (await Mirrorfly.hasNextMessages()) {
_loadNextMessages(showLoading: false);
}
//Commenting the below line, bcz when sending the contact message in for loop the hasNextMessage will fail from 2nd cases in loop.
// so extra message is inserted in the list.
/*else{
print("loadLastMessages inserting");
chatList.insert(0, chatMessageModel);
sendReadReceipt();
}*/
}