onUpdateLastMessageUI method

void onUpdateLastMessageUI(
  1. String chatJid
)

Implementation

void onUpdateLastMessageUI(String chatJid) {
  if (Get.isRegistered<ArchivedChatListController>()) {
    Get.find<ArchivedChatListController>().updateArchiveRecentChat(chatJid);
  }
  if (Get.isRegistered<DashboardController>()) {
    Get.find<DashboardController>()
        .updateRecentChat(jid: chatJid, newInsertable: true);
  }
}