From cfcf20d899eae8e3e33305b243cfd4047cebde38 Mon Sep 17 00:00:00 2001 From: Rizwan Mohamed Ibrahim Date: Mon, 20 Nov 2023 20:54:08 +0530 Subject: [PATCH] Clean up commented out code related to me tab --- .../Scene/Root/MainTab/MainTabBarController.swift | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Mastodon/Scene/Root/MainTab/MainTabBarController.swift b/Mastodon/Scene/Root/MainTab/MainTabBarController.swift index bf14825a2..996d45a65 100644 --- a/Mastodon/Scene/Root/MainTab/MainTabBarController.swift +++ b/Mastodon/Scene/Root/MainTab/MainTabBarController.swift @@ -358,22 +358,10 @@ extension MainTabBarController { guard let tab = touchedTab(by: sender) else { return } switch tab { - // todo: reconsider the "double tap to change account" feature -> https://github.com/mastodon/mastodon-ios/issues/628 -// case .me: -// guard let authContext = authContext else { return } -// assert(Thread.isMainThread) -// -// guard let nextAccount = context.nextAccount(in: authContext) else { return } -// -// Task { @MainActor in -// let isActive = try await context.authenticationService.activeMastodonUser(domain: nextAccount.domain, userID: nextAccount.userID) -// guard isActive else { return } -// self.coordinator.setup() -// } case .search: assert(Thread.isMainThread) // double tapping search tab opens the search bar without additional taps - searchViewController?.searchBarTapPublisher.send("") + searchViewController?.searchBar.becomeFirstResponder() default: break }