showProfilePopup method

dynamic showProfilePopup(
  1. Rx<ProfileDetails> profile
)

Implementation

showProfilePopup(Rx<ProfileDetails> profile) {
  showQuickProfilePopup(
      // chatItem: chatItem,
      chatTap: () {
        NavUtils.back();
        onListItemPressed(profile.value);
      },
      infoTap: () {
        NavUtils.back();
        if (profile.value.isGroupProfile ?? false) {
          NavUtils.toNamed(Routes.groupInfo, arguments: profile.value);
        } else {
          NavUtils.toNamed(Routes.chatInfo,
              arguments: ChatInfoArguments(
                  chatJid: (profile.value.jid.checkNull())));
        }
      },
      profile: profile,
      availableFeatures: availableFeatures);
}