소스 검색

after logout user is redirected to welcome screen

nayooti 5 년 전
부모
커밋
c7158c3fb1
2개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      deltachat-ios/Controller/AccountSetupController.swift
  2. 0 5
      deltachat-ios/Coordinator/AppCoordinator.swift

+ 1 - 1
deltachat-ios/Controller/AccountSetupController.swift

@@ -825,7 +825,7 @@ class AccountSetupController: UITableViewController {
             appDelegate.open()
             appDelegate.start()
 
-            appDelegate.appCoordinator.presentLoginController()
+            appDelegate.appCoordinator.presentWelcomeController()
         }))
         alert.addAction(UIAlertAction(title: String.localized("cancel"), style: .cancel))
         present(alert, animated: true, completion: nil)

+ 0 - 5
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -135,11 +135,6 @@ class AppCoordinator: NSObject, Coordinator {
         window.makeKeyAndVisible()
     }
 
-    func presentLoginController() {
-        window.rootViewController = loginController
-        window.makeKeyAndVisible()
-    }
-
     func presentTabBarController() {
         window.rootViewController = tabBarController
         window.makeKeyAndVisible()