mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-10 16:22:59 +01:00
Reenable followers/followees (IOS-192)
This commit is contained in:
parent
f9492e07a3
commit
393722a31d
@ -336,41 +336,37 @@ extension ProfileHeaderViewController: ProfileHeaderViewDelegate {
|
|||||||
switch meter {
|
switch meter {
|
||||||
case .post:
|
case .post:
|
||||||
// do nothing
|
// 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
|
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
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user