chatInfo method
dynamic
chatInfo()
Implementation
chatInfo() {
var chatIndex = recentChats.indexWhere((element) =>
selectedChats.first == element.jid); //selectedChatsPosition[index];
var item = recentChats[chatIndex];
DialogUtils.progressLoading();
clearAllChatSelection();
getProfileDetails(item.jid.checkNull()).then((value) {
if (value.jid != null) {
DialogUtils.hideLoading();
var profile = value; //profiledata(value.toString());
if (item.isGroup!) {
Future.delayed(const Duration(milliseconds: 100),
() => NavUtils.toNamed(Routes.groupInfo, arguments: profile));
} else {
Future.delayed(
const Duration(milliseconds: 100),
() => NavUtils.toNamed(Routes.chatInfo,
arguments:
ChatInfoArguments(chatJid: profile.jid.checkNull())));
}
}
});
}