From a8d43538f1fb642161258535a21b17dbefe5978f Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Thu, 30 Jun 2022 14:51:07 +0200 Subject: [PATCH 1/2] Explicitely hiding votes when disclosed poll --- .../features/home/room/detail/timeline/item/PollOptionView.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollOptionView.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollOptionView.kt index b21b1a152d..20aa6e3af2 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollOptionView.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollOptionView.kt @@ -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) } From 18efa84e3a258b28e48808b5c9cf3fdba48b1808 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Thu, 30 Jun 2022 14:58:32 +0200 Subject: [PATCH 2/2] Adding changelog entry --- changelog.d/6430.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/6430.bugfix diff --git a/changelog.d/6430.bugfix b/changelog.d/6430.bugfix new file mode 100644 index 0000000000..99b1cb836d --- /dev/null +++ b/changelog.d/6430.bugfix @@ -0,0 +1 @@ +[Poll] Fixes visible and wrong votes in closed poll after removing 2 previous polls