From ff3d909861aadba6c0322f2541dae1171c0aad00 Mon Sep 17 00:00:00 2001 From: Bruno Muniz Azevedo Filho <bruno@elixxir.io> Date: Mon, 1 Aug 2022 16:40:04 -0300 Subject: [PATCH] Fixed issue where deeplinking pushes wrong stack --- Sources/App/DependencyRegistrator.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/App/DependencyRegistrator.swift b/Sources/App/DependencyRegistrator.swift index 297f9231..4466aea4 100644 --- a/Sources/App/DependencyRegistrator.swift +++ b/Sources/App/DependencyRegistrator.swift @@ -261,7 +261,10 @@ extension PushRouter { switch route { case .search: if (navigationController.viewControllers.last as? SearchContainerController) == nil { - navigationController.setViewControllers([SearchContainerController()], animated: true) + navigationController.setViewControllers([ + ChatListController(), + SearchContainerController() + ], animated: true) } case .requests: -- GitLab