|
@@ -97,18 +97,21 @@ class AppCoordinator {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func handleMailtoURL(_ url: URL) {
|
|
|
+ func handleMailtoURL(_ url: URL) -> Bool {
|
|
|
if RelayHelper.sharedInstance.parseMailtoUrl(url) {
|
|
|
showTab(index: chatsTab)
|
|
|
if let rootController = self.tabBarController.selectedViewController as? UINavigationController {
|
|
|
rootController.popToRootViewController(animated: false)
|
|
|
if let controller = rootController.viewControllers.first as? ChatListController {
|
|
|
controller.handleMailto()
|
|
|
+ return true
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
logger.warning("Could not parse mailto: URL")
|
|
|
}
|
|
|
+ RelayHelper.sharedInstance.finishMailto()
|
|
|
+ return false
|
|
|
}
|
|
|
|
|
|
func handleQRCode(_ code: String) {
|