From 1c858a4d9b172594a1c4de9662af709c74063efd Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Thu, 10 Jul 2025 09:46:11 +0200 Subject: [PATCH] Handle pending URL when core is started in AssistantView --- Linphone/LinphoneApp.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Linphone/LinphoneApp.swift b/Linphone/LinphoneApp.swift index 61d96ccdb..79d716fcb 100644 --- a/Linphone/LinphoneApp.swift +++ b/Linphone/LinphoneApp.swift @@ -189,6 +189,16 @@ struct RootView: View { AssistantView() ToastView().zIndex(3) } + + if coreContext.coreIsStarted { + VStack {} // Force trigger .onAppear + .onAppear { + if let url = pendingURL { + URIHandler.handleURL(url: url) + pendingURL = nil + } + } + } } else { ZStack { MainViewSwitcher(