fix up matrix:u links
This commit is contained in:
parent
8aada9a895
commit
a09ae01b4e
1 changed files with 3 additions and 3 deletions
|
|
@ -45,10 +45,10 @@ class const ChatPage({super.key}) extends HookConsumerWidget {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
ref.read(LinkRequestController.provider.notifier).consume();
|
ref.read(LinkRequestController.provider.notifier).consume();
|
||||||
navigatorKey.currentState?.popUntil((route) => route.isFirst);
|
navigatorKey.currentState?.popUntil((route) => route.isFirst);
|
||||||
final navigatorContext = navigatorKey.currentContext;
|
final scaffoldContext = scaffoldKey.currentContext;
|
||||||
if (navigatorContext == null) return;
|
if (scaffoldContext == null) return;
|
||||||
|
|
||||||
ref.openLinkInfo(navigatorContext, linkRequest).onError(showError);
|
ref.openLinkInfo(scaffoldContext, linkRequest).onError(showError);
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
}, [linkRequest, initComplete]);
|
}, [linkRequest, initComplete]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue