Selaa lähdekoodia

rename method to make the distinction clearer between qr codes that are handled within the current context and those that create a new context

cyberta 3 vuotta sitten
vanhempi
commit
8ba29ea8e3

+ 1 - 1
deltachat-ios/AppDelegate.swift

@@ -197,7 +197,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                            .replacingOccurrences(of: "openpgp4fpr", with: "OPENPGP4FPR", options: .literal, range: nil)
                            .replacingOccurrences(of: "%23", with: "#", options: .literal, range: nil)
 
-            self.appCoordinator.handleQRCode(urlString)
+            self.appCoordinator.handleQRCodeForCurrentAccount(urlString)
             return true
         case "mailto":
             return self.appCoordinator.handleMailtoURL(url)

+ 2 - 2
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -131,8 +131,8 @@ class AppCoordinator {
         RelayHelper.shared.finishMailto()
         return false
     }
-    
-    func handleQRCode(_ code: String) {
+
+    func handleQRCodeForCurrentAccount(_ code: String) {
         showTab(index: qrTab)
         if let navController = self.tabBarController.selectedViewController as? UINavigationController,
            let topViewController = navController.topViewController,