MESSENGER-4383 fix for undisclosed button visibility and small UI fixes

This commit is contained in:
Frank Rotermund
2023-06-14 07:45:18 +02:00
parent c2b4d7081b
commit df2d409fc1
2 changed files with 5 additions and 3 deletions
@@ -74,7 +74,8 @@ struct TimelinePollView: View {
.font(theme.fonts.footnote)
.foregroundColor(theme.colors.tertiaryContent)
if poll.showParticipants && (poll.type == .undisclosed || poll.closed) {
if poll.showParticipants &&
(poll.type == TimelinePollType.disclosed || poll.closed) {
Button(action: {
viewModel.send(viewAction:.showParticipants)
})