Fix add/remove from lists visibility (#4)

This commit is contained in:
Justin Mazzocchi 2021-03-17 17:59:10 -07:00 committed by GitHub
parent 0f4ec569d6
commit 466a351a73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,17 +74,18 @@ private extension ProfileViewController {
// swiftlint:disable:next function_body_length
func menu(accountViewModel: AccountViewModel, relationship: Relationship) -> UIMenu {
var actions = [UIAction(
title: NSLocalizedString("account.add-remove-lists", comment: ""),
image: UIImage(systemName: "scroll")) { [weak self] _ in
self?.addRemoveFromLists(accountViewModel: accountViewModel)
},
UIAction(
title: NSLocalizedString("share", comment: ""),
image: UIImage(systemName: "square.and.arrow.up")) { _ in
accountViewModel.share()
}]
if relationship.following {
actions.append(UIAction(
title: NSLocalizedString("account.add-remove-lists", comment: ""),
image: UIImage(systemName: "scroll")) { [weak self] _ in
self?.addRemoveFromLists(accountViewModel: accountViewModel)
})
if relationship.showingReblogs {
actions.append(UIAction(
title: NSLocalizedString("account.hide-reblogs", comment: ""),