Don't show Voted button for polls that you authored
This commit is contained in:
parent
005001b081
commit
e18a09f4ac
|
@ -114,7 +114,11 @@ class StatusPollView: UIView {
|
||||||
if expired {
|
if expired {
|
||||||
voteButton.setTitle("Expired", for: .disabled)
|
voteButton.setTitle("Expired", for: .disabled)
|
||||||
} else if poll.voted ?? false {
|
} else if poll.voted ?? false {
|
||||||
|
if status.account.id == mastodonController.account.id {
|
||||||
|
voteButton.setTitle("", for: .disabled)
|
||||||
|
} else {
|
||||||
voteButton.setTitle("Voted", for: .disabled)
|
voteButton.setTitle("Voted", for: .disabled)
|
||||||
|
}
|
||||||
} else if poll.multiple {
|
} else if poll.multiple {
|
||||||
voteButton.setTitle("Select multiple", for: .disabled)
|
voteButton.setTitle("Select multiple", for: .disabled)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue