mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 10:56:28 +02:00
Hides Poll option when replying to channel or DMs.
This commit is contained in:
@@ -244,6 +244,7 @@ fun NewPostView(onClose: () -> Unit, baseReplyTo: Note? = null, quote: Note? = n
|
||||
postViewModel.upload(it, context)
|
||||
}
|
||||
|
||||
if (postViewModel.canUsePoll()) {
|
||||
AddPollButton(postViewModel.wantsPoll) {
|
||||
postViewModel.wantsPoll = !postViewModel.wantsPoll
|
||||
}
|
||||
@@ -253,6 +254,7 @@ fun NewPostView(onClose: () -> Unit, baseReplyTo: Note? = null, quote: Note? = n
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun AddPollButton(
|
||||
|
Reference in New Issue
Block a user