From eb72198048522c5b8cfe860e000812d8cfd29afa Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 9 May 2020 13:06:18 +0200 Subject: [PATCH] Fix open user link --- lib/utils/url_launcher.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils/url_launcher.dart b/lib/utils/url_launcher.dart index 29e8927..f90d481 100644 --- a/lib/utils/url_launcher.dart +++ b/lib/utils/url_launcher.dart @@ -43,9 +43,10 @@ class UrlLauncher { Navigator.of(context).pop(); if (roomID != null) { - await Navigator.push( + await Navigator.pushAndRemoveUntil( context, - MaterialPageRoute(builder: (context) => ChatView(roomID)), + AppRoute.defaultRoute(context, ChatView(roomID)), + (r) => r.isFirst, ); } }