2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

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

This commit is contained in:
shannon 2024-12-06 13:48:58 -05:00
parent 216e12a593
commit 6035e0e69d

View File

@ -280,6 +280,17 @@ 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 {