|
|
|
@ -1451,12 +1451,11 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void openChatByNoti(BuildContext context) async {
|
|
|
|
|
SingleUserChatModel nUser = SingleUserChatModel.fromJson(
|
|
|
|
|
jsonDecode(await Utils.getStringFromPrefs("notificationData")),
|
|
|
|
|
);
|
|
|
|
|
Utils.saveStringFromPrefs("isAppOpendByChat", "false");
|
|
|
|
|
SingleUserChatModel nUser = SingleUserChatModel.fromJson(jsonDecode(await Utils.getStringFromPrefs("notificationData")));
|
|
|
|
|
Utils.saveStringFromPrefs("notificationData", "null");
|
|
|
|
|
Future.delayed(const Duration(seconds: 1));
|
|
|
|
|
logger.w(jsonEncode(nUser));
|
|
|
|
|
Future.delayed(const Duration(seconds: 2));
|
|
|
|
|
for (ChatUser user in searchedChats!) {
|
|
|
|
|
if (user.id == nUser.targetUserId) {
|
|
|
|
|
Navigator.pushNamed(context, AppRoutes.chatDetailed, arguments: ChatDetailedScreenParams(user, false));
|
|
|
|
|