Skip to content

Commit

Permalink
Update deltachat-ios/Coordinator/AppCoordinator.swift
Browse files Browse the repository at this point in the history
Co-authored-by: bjoern <r10s@b44t.com>
  • Loading branch information
zeitschlag and r10s committed Mar 27, 2024
1 parent c60e44f commit 7253503
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deltachat-ios/Coordinator/AppCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ class AppCoordinator: NSObject {

extension AppCoordinator: UITabBarControllerDelegate {
func tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
// if the chatlist is already visible when tapping, scroll chatlist to top
if let navigationController = viewController as? UINavigationController,
let chatListViewController = navigationController.viewControllers.first as? ChatListViewController,
let chatsTab = tabBarController.selectedViewController as? UINavigationController,
Expand Down

0 comments on commit 7253503

Please sign in to comment.