updateLastMessage method
Implementation
void updateLastMessage(List<String> chatJid) {
//below method is used when message is not sent and onMessageStatusUpdate listener will not trigger till the message status was updated so notify the ui in dashboard
for (var element in chatJid) {
Get.find<MainController>().onUpdateLastMessageUI(element);
}
}