Explorar o código

combine handleLoginSuccess() and handleProfileInfoClosed() to one function

B. Petersen %!s(int64=5) %!d(string=hai) anos
pai
achega
1a115f4c73
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  1. 2 6
      deltachat-ios/Coordinator/AppCoordinator.swift

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

@@ -178,21 +178,17 @@ extension AppCoordinator: WelcomeCoordinator {
         welcomeController?.present(loginController, animated: true, completion: nil)
     }
 
-    func handleLoginSuccess() {
-        presentTabBarController()
-    }
-
     func handleQRAccountCreationSuccess() {
         let profileInfoController = ProfileInfoViewController(context: dcContext)
         let profileInfoNav = UINavigationController(rootViewController: profileInfoController)
         profileInfoNav.modalPresentationStyle = .fullScreen
         let coordinator = EditSettingsCoordinator(dcContext: dcContext, navigationController: profileInfoNav)
         profileInfoController.coordinator = coordinator
-        profileInfoController.onClose = handleProfileInfoClosed
+        profileInfoController.onClose = handleLoginSuccess
         welcomeController?.present(profileInfoNav, animated: true, completion: nil)
     }
 
-    private func handleProfileInfoClosed() {
+    func handleLoginSuccess() {
         presentTabBarController()
     }