Browse Source

after logout user is redirected to welcome screen

nayooti 5 years ago
parent
commit
c7158c3fb1

+ 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()