1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-10 08:12:45 +01:00

Reenable followers/followees (IOS-192)

This commit is contained in:
Nathan Mattes 2023-12-25 23:42:49 +01:00
parent f9492e07a3
commit 393722a31d

View File

@ -336,41 +336,37 @@ extension ProfileHeaderViewController: ProfileHeaderViewDelegate {
switch meter {
case .post:
// do nothing
break
case .follower:
#warning("TODO: Implement")
// guard let domain = viewModel.account.domain,
// let userID = viewModel.account.id
// else { return }
// let followerListViewModel = FollowerListViewModel(
// context: context,
// authContext: viewModel.authContext,
// domain: domain,
// userID: userID
// )
// _ = coordinator.present(
// scene: .follower(viewModel: followerListViewModel),
// from: self,
// transition: .show
// )
break
case .following:
#warning("TODO: Implement")
// guard let domain = viewModel.account.domain,
// let userID = viewModel.account.id
// else { return }
// let followingListViewModel = FollowingListViewModel(
// context: context,
// authContext: viewModel.authContext,
// domain: domain,
// userID: userID
// )
// _ = coordinator.present(
// scene: .following(viewModel: followingListViewModel),
// from: self,
// transition: .show
// )
break
case .follower:
guard let domain = viewModel.account.domain else { return }
let userID = viewModel.account.id
let followerListViewModel = FollowerListViewModel(
context: context,
authContext: viewModel.authContext,
domain: domain,
userID: userID
)
_ = coordinator.present(
scene: .follower(viewModel: followerListViewModel),
from: self,
transition: .show
)
case .following:
guard let domain = viewModel.account.domain else { return }
let userID = viewModel.account.id
let followingListViewModel = FollowingListViewModel(
context: context,
authContext: viewModel.authContext,
domain: domain,
userID: userID
)
_ = coordinator.present(
scene: .following(viewModel: followingListViewModel),
from: self,
transition: .show
)
}
}