Merge pull request #6593 from vector-im/gil/6581-App_Layout-Leaving_Space_should_send_user_to_All_Chats

App Layout: Leaving a Space now sends user to All Chats
This commit is contained in:
Gil Eluard
2022-08-19 10:09:50 +02:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -314,6 +314,8 @@ class AllChatsViewController: HomeViewController {
coordinator.start()
add(childCoordinator: coordinator)
coordinator.completion = { [weak self] result in
// switching to home space
self?.switchSpace(withId: nil)
coordinator.toPresentable().dismiss(animated: true) {
self?.remove(childCoordinator: coordinator)
}

1
changelog.d/6581.bugfix Normal file
View File

@@ -0,0 +1 @@
App Layout: Leaving a Space now sends user to All Chats