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, ); } }