From fd6b13305f86e736434319f547d226897c3e2c00 Mon Sep 17 00:00:00 2001
From: Bruno Muniz Azevedo Filho <bruno@elixxir.io>
Date: Tue, 28 Jun 2022 03:56:31 -0300
Subject: [PATCH] Fixed issue w/ navigation on group creation

---
 .../Coordinator/ContactListCoordinator.swift                   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Sources/ContactListFeature/Coordinator/ContactListCoordinator.swift b/Sources/ContactListFeature/Coordinator/ContactListCoordinator.swift
index baf38264..56043d75 100644
--- a/Sources/ContactListFeature/Coordinator/ContactListCoordinator.swift
+++ b/Sources/ContactListFeature/Coordinator/ContactListCoordinator.swift
@@ -25,6 +25,7 @@ public struct ContactListCoordinator: ContactListCoordinating {
     var sidePresenter: Presenting = SideMenuPresenter()
     var bottomPresenter: Presenting = BottomPresenter()
     var fullscreenPresenter: Presenting = FullscreenPresenter()
+    var replacePresenter: Presenting = ReplacePresenter(mode: .replaceLast)
 
     var scanFactory: () -> UIViewController
     var searchFactory: () -> UIViewController
@@ -104,7 +105,7 @@ public extension ContactListCoordinator {
 
     func toGroupChat(with info: GroupInfo, from parent: UIViewController) {
         let screen = groupChatFactory(info)
-        pushPresenter.present(screen, from: parent)
+        replacePresenter.present(screen, from: parent)
     }
 
     func toSideMenu(from parent: UIViewController) {
-- 
GitLab