mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Dismiss the whole search tab and move back to the previous when when tapping the search field dismissal button.
This commit is contained in:
@@ -339,6 +339,8 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
||||
handleAppRoute(.room(roomID: roomID, via: []), animated: true)
|
||||
}
|
||||
case .cancel:
|
||||
// The search screen is also dismissed when leaving the tab, ignore it in that case.
|
||||
guard navigationTabCoordinator.selectedTab == .search else { return }
|
||||
// Return to the tab the user came from, but never back into search.
|
||||
navigationTabCoordinator.selectedTab = navigationTabCoordinator.previousTab == .search ? .chats : navigationTabCoordinator.previousTab ?? .chats
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user