From 3bef271f468de1f41a299ae729edd94e8afe42df Mon Sep 17 00:00:00 2001 From: Chralu Date: Wed, 19 Jun 2024 11:12:40 +0200 Subject: [PATCH] fix(rpc): :bug: DeeplinkRPC calls are correctly redirected to the receiver. --- lib/router/router.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/router/router.dart b/lib/router/router.dart index 9ca83d0d2..edf52e850 100644 --- a/lib/router/router.dart +++ b/lib/router/router.dart @@ -169,9 +169,9 @@ class RoutesPath { ], ), ], - redirect: (context, state) { - if (deeplinkRpcReceiver.canHandle(state.name)) { - deeplinkRpcReceiver.handle(state.name); + redirect: (context, state) async { + if (deeplinkRpcReceiver.canHandle(state.matchedLocation)) { + await deeplinkRpcReceiver.handle(state.matchedLocation); } return null; },