infoPage method
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 Profile);
isBlocked(profile.isBlocked);
debugPrint("value--> ${profile.isGroupProfile}");
}
checkAdminBlocked();
memberOfGroup();
getChatHistory();
setChatStatus();
setOnGoingUserAvail();
});
/*Get.toNamed(Routes.groupInfo, arguments: profile)?.then((value) {
if (value != null) {
profile_(value as Profile);
isBlocked(profile.isBlocked);
checkAdminBlocked();
memberOfGroup();
Mirrorfly.setOnGoingChatUser(profile.jid!);
SessionManagement.setCurrentChatJID(profile.jid.checkNull());
getChatHistory();
sendReadReceipt();
setChatStatus();
debugPrint("value--> ${profile.isGroupProfile}");
}
});*/
} else {
Navigator.push(
context,
MaterialPageRoute(
builder: (con) => ChatInfoView(jid: profile.jid.checkNull())))
.then((value) {
setOnGoingUserAvail();
});
/*Get.toNamed(Routes.chatInfo, arguments: profile)?.then((value) {
debugPrint("chat info-->$value");
// Mirrorfly.setOnGoingChatUser(profile.jid!);
// SessionManagement.setCurrentChatJID(profile.jid.checkNull());
});*/
}
}