updateLastMessage method

void updateLastMessage(
  1. dynamic value
)

Implementation

void updateLastMessage(dynamic value) {
  ChatMessageModel chatMessageModel = sendMessageModelFromJson(value);
  loadLastMessages(chatMessageModel);
  //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
  Get.find<MainController>().onUpdateLastMessageUI(profile.jid.checkNull());
}