fix: GoRouter captures receive sharing intents sometimes
This commit is contained in:
parent
e427c84c02
commit
dcdaededd2
2 changed files with 6 additions and 1 deletions
|
|
@ -39,6 +39,10 @@ class FluffyChatApp extends StatelessWidget {
|
|||
routes: AppRoutes.routes,
|
||||
debugLogDiagnostics: true,
|
||||
redirect: (context, state) {
|
||||
// Workaround for content sharings passed to go router:
|
||||
if (state.uri.scheme == 'content') return null;
|
||||
|
||||
// Pass deep links to app:
|
||||
if (state.uri.toString().startsWith(AppConfig.deepLinkPrefix)) {
|
||||
return '/rooms/newprivatechat?deeplink=${state.uri}';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue