Hides Poll option when replying to channel or DMs.
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user