                 controller.subscription = room
 
                 // Close all presenting controllers, modals & pushed
-                mainViewController.presentedViewController?.dismiss(animated: true, completion: nil)
-                mainViewController.detailViewController?.presentedViewController?.dismiss(animated: true, completion: nil)
+                mainViewController.presentedViewController?.dismiss(animated: animated, completion: nil)
+                mainViewController.detailViewController?.presentedViewController?.dismiss(animated: animated, completion: nil)
 
                 let nav = BaseNavigationController(rootViewController: controller)
                 mainViewController.showDetailViewController(nav, sender: self)

extension AppManager {

    @discardableResult
    static func open(room: Subscription) -> ChatViewController? {
        guard
            let appDelegate  = UIApplication.shared.delegate as? AppDelegate,
            let mainViewController = appDelegate.window?.rootViewController as? MainSplitViewController


            if let nav = mainViewController.viewControllers.first as? UINavigationController {
                // Close all presenting controllers, modals & pushed
                nav.presentedViewController?.dismiss(animated: animated, completion: nil)
                nav.popToRootViewController(animated: animated)

                // Push the new controller to the stack
                nav.pushViewController(controller, animated: animated)

                return controller
            }
