瀏覽代碼

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 年之前
父節點
當前提交
8ba29ea8e3
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      deltachat-ios/AppDelegate.swift
  2. 2 2
      deltachat-ios/Coordinator/AppCoordinator.swift

+ 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,