Fix poll for current account

This commit is contained in:
Thomas Ricouard 2024-01-05 19:10:31 +01:00
parent bfc1f61e4b
commit 0501ce9828

View file

@ -76,8 +76,13 @@ public struct StatusPollView: View {
VStack(alignment: .leading) {
ForEach(Array(viewModel.poll.options.enumerated()), id: \.element.id) { index, option in
HStack {
if status.account.id == currentAccount.account?.id {
makeBarView(for: option, buttonImage: EmptyView())
.disabled(true)
} else {
makeBarView(for: option, buttonImage: buttonImage(option: option))
.disabled(isInteractive == false)
}
if viewModel.showResults || status.account.id == currentAccount.account?.id {
Spacer()
// Make sure they're all the same width using a ZStack with 100% hiding behind the