From ea490b3ca95488166df15e87f9d75aea725829aa Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Mon, 20 Nov 2023 15:56:16 +0300 Subject: [PATCH] feat(deeplinks): Create custom event for universal links on macos --- vendor/DOtherSide/lib/src/Status/AppDelegate.mm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vendor/DOtherSide/lib/src/Status/AppDelegate.mm b/vendor/DOtherSide/lib/src/Status/AppDelegate.mm index a5a8f2879..62bfeca16 100644 --- a/vendor/DOtherSide/lib/src/Status/AppDelegate.mm +++ b/vendor/DOtherSide/lib/src/Status/AppDelegate.mm @@ -4,9 +4,13 @@ #include #include +#include +#include + #import #import + @interface StatusApplicationDelegate: NSObject - (BOOL)application:(NSApplication *)application continueUserActivity:(NSUserActivity *)userActivity @@ -24,8 +28,9 @@ continueUserActivity:(NSUserActivity *)userActivity QUrl deeplink = QUrl::fromNSURL(url); // TODO #12434: Check if WalletConnect link and redirect the workflow to Pair or Authenticate - - // TODO #12245: set it to nim + + QFileOpenEvent event(deeplink); + QGuiApplication::sendEvent(qGuiApp, &event); return TRUE; } return FALSE;