getProfileDetail method

void getProfileDetail(
  1. dynamic context,
  2. RecentChatData chatItem,
  3. int index
)

Implementation

void getProfileDetail(context, RecentChatData chatItem, int index) {
  getProfileDetails(chatItem.jid.checkNull()).then((value) {
    profile_(value);
    debugPrint("dashboard controller profile update received");
    showQuickProfilePopup(
        // chatItem: chatItem,
        chatTap: () {
          NavUtils.back();
          if (selected.value) {
            selectOrRemoveChatfromList(index);
          } else {
            toChatPage(chatItem.jid.checkNull());
          }
        },
        callTap: () {},
        videoTap: () {},
        infoTap: () {
          NavUtils.back();
          infoPage(value);
        },
        profile: profile_,
        availableFeatures: availableFeatures);
  });
}