Merge pull request #6431 from vector-im/fix/mna/closed-poll-visible-votes

[Poll] - Wrong votes in closed poll after removing 2 previous polls (PSG-590)
This commit is contained in:
Maxime NATUREL 2022-07-04 11:33:26 +02:00 committed by GitHub
commit f3e7d0daff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/6430.bugfix Normal file
View file

@ -0,0 +1 @@
[Poll] Fixes visible and wrong votes in closed poll after removing 2 previous polls

View file

@ -82,6 +82,7 @@ class PollOptionView @JvmOverloads constructor(
private fun renderPollUndisclosed(state: PollOptionViewState.PollUndisclosed) {
views.optionCheckImageView.isVisible = true
views.optionWinnerImageView.isVisible = false
hideVotes()
renderVoteSelection(state.isSelected)
}