Clean up commented out code related to me tab

This commit is contained in:
Rizwan Mohamed Ibrahim 2023-11-20 20:54:08 +05:30
parent d1588dda98
commit cfcf20d899
No known key found for this signature in database
1 changed files with 1 additions and 13 deletions

View File

@ -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
}