mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-15 16:55:03 +01:00
hide end poll button for edit poll mode
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
309ba90197
commit
84bcd0c273
@ -153,7 +153,7 @@ class PollMainViewModel @Inject constructor(private val repository: PollReposito
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun showEndPollButton(poll: Poll): Boolean {
|
private fun showEndPollButton(poll: Poll): Boolean {
|
||||||
return poll.status == Poll.STATUS_OPEN && (isPollCreatedByCurrentUser(poll) || isOwnerOrModerator)
|
return !editVotes && poll.status == Poll.STATUS_OPEN && (isPollCreatedByCurrentUser(poll) || isOwnerOrModerator)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showVotersAmount(poll: Poll): Boolean {
|
private fun showVotersAmount(poll: Poll): Boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user