Hides Poll option when replying to channel or DMs.

This commit is contained in:
Vitor Pamplona
2023-04-04 16:10:55 -04:00
parent a8a3915c8d
commit 83d7085375

View File

@@ -244,8 +244,10 @@ fun NewPostView(onClose: () -> Unit, baseReplyTo: Note? = null, quote: Note? = n
postViewModel.upload(it, context) postViewModel.upload(it, context)
} }
AddPollButton(postViewModel.wantsPoll) { if (postViewModel.canUsePoll()) {
postViewModel.wantsPoll = !postViewModel.wantsPoll AddPollButton(postViewModel.wantsPoll) {
postViewModel.wantsPoll = !postViewModel.wantsPoll
}
} }
} }
} }