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:
parent
f9492e07a3
commit
393722a31d
@ -338,39 +338,35 @@ extension ProfileHeaderViewController: ProfileHeaderViewDelegate {
|
||||
// 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
|
||||
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:
|
||||
#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
|
||||
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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user