Revert "Switch to profile tab to view your own profile, regardless of where you’re navigating from."

This reverts commit 6035e0e69def1a43207676afebde368a1dfc42e4.

Overriding design principle: Switch tabs only based on user’s direct interaction with the tabs.
This commit is contained in:
shannon 2024-12-09 11:04:09 -05:00
parent 6035e0e69d
commit a2558201be

View File

@ -280,17 +280,6 @@ extension SceneCoordinator {
guard var presentingViewController = sender ?? sceneDelegate.window?.rootViewController?.topMost else {
return nil
}
if case let .profile(profileType) = scene {
switch profileType {
case .me:
switchToTabBar(tab: .me)
return tabBarController.meProfileViewController
case .notMe:
break
}
}
// adapt for child controller
if let navigationControllerVisibleViewController = presentingViewController.navigationController?.visibleViewController {
switch viewController {