浏览代码

after logout user is redirected to welcome screen

nayooti 5 年之前
父节点
当前提交
c7158c3fb1

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

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

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

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