Highlight your own votes when displaying poll results (#2242)
* Highlight your own votes when displaying poll results * Unbreak tests * Add a checkmark to the description of self-voted options
This commit is contained in:
parent
45598cf047
commit
d07c1b098e
12 changed files with 47 additions and 15 deletions
|
@ -173,7 +173,8 @@ class FilterTest {
|
|||
options = pollOptions.map {
|
||||
PollOption(it, 0)
|
||||
},
|
||||
voted = false
|
||||
voted = false,
|
||||
ownVotes = null
|
||||
)
|
||||
} else null,
|
||||
card = null
|
||||
|
|
|
@ -697,6 +697,7 @@ class TimelineViewModelTest {
|
|||
votesCount = 1,
|
||||
voted = false,
|
||||
options = listOf(PollOption("1", 1), PollOption("2", 2)),
|
||||
ownVotes = null
|
||||
)
|
||||
val status4 = makeStatus("4").copy(poll = poll)
|
||||
val status3 = makeStatus("3")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue