infoPage method

dynamic infoPage(
  1. BuildContext context
)

Implementation

infoPage(BuildContext context) {
  setOnGoingUserGone();
  if (profile.isGroupProfile ?? false) {
    Navigator.push(
        context,
        MaterialPageRoute(
            builder: (con) =>
                GroupInfoView(jid: profile.jid.checkNull()))).then((value) {
      if (value != null) {
        profile_(value as ProfileDetails);
        isBlocked(profile.isBlocked);
        debugPrint("value--> ${profile.isGroupProfile}");
        // _loadNextMessages(showLoading: false);
        chatList.clear();
        _loadMessages();
      }
      checkAdminBlocked();
      memberOfGroup();
      setChatStatus();
      setOnGoingUserAvail();
    });
  } else {
    Navigator.push(
            context,
            MaterialPageRoute(
                builder: (con) => ChatInfoView(jid: profile.jid.checkNull())))
        .then((value) {
      setOnGoingUserAvail();
    });
  }
}