forked from shadowfacts/Tusker
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 {
|
||||
voteButton.setTitle("Expired", for: .disabled)
|
||||
} else if poll.voted ?? false {
|
||||
voteButton.setTitle("Voted", for: .disabled)
|
||||
if status.account.id == mastodonController.account.id {
|
||||
voteButton.setTitle("", for: .disabled)
|
||||
} else {
|
||||
voteButton.setTitle("Voted", for: .disabled)
|
||||
}
|
||||
} else if poll.multiple {
|
||||
voteButton.setTitle("Select multiple", for: .disabled)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue