infoPage method
Implementation
infoPage(BuildContext context,Profile profile) {
if (profile.isGroupProfile ?? false) {
Navigator.push(
context,
MaterialPageRoute(
builder: (con) =>
GroupInfoView(jid: profile.jid.checkNull())));
/*Get.toNamed(Routes.groupInfo, arguments: profile)?.then((value) {
if (value != null) {
// profile_(value as Profile);
// isBlocked(profile.isBlocked);
// checkAdminBlocked();
// memberOfGroup();
// Mirrorfly.setOnGoingChatUser(profile.jid!);
// getChatHistory();
// sendReadReceipt();
}
});*/
} else {
Navigator.push(
context,
MaterialPageRoute(
builder: (con) => ChatInfoView(jid: profile.jid.checkNull())));
// Get.toNamed(Routes.chatInfo, arguments: profile)?.then((value) {});
}
}