sendToChatPage method
Implementation
sendToChatPage(
BuildContext context, String userJid, bool showChatDeliveryIndicator) {
try {
Navigator.push(
context,
MaterialPageRoute(
builder: (con) => ChatView(
jid: userJid,
isUser: true,
showChatDeliveryIndicator: showChatDeliveryIndicator,
)));
} catch (e) {
Navigator.pop(context);
Navigator.push(
context,
MaterialPageRoute(
builder: (con) => ChatView(
jid: userJid,
isUser: true,
showChatDeliveryIndicator: showChatDeliveryIndicator,
)));
}
}