diff options
author | Marcel Hibbe <dev@mhibbe.de> | 2022-09-27 17:54:38 +0300 |
---|---|---|
committer | Tim Krüger (Rebase PR Action) <t@timkrueger.me> | 2022-09-29 10:34:50 +0300 |
commit | 84bcd0c273737571e185291c2a8dfbc862db34bb (patch) | |
tree | 655469c1509ec1adf038f69498474fa6dcf0b6a2 /app/src | |
parent | 309ba901975b600e85d1d83027125ee573731c77 (diff) |
hide end poll button for edit poll mode
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/nextcloud/talk/polls/viewmodels/PollMainViewModel.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/nextcloud/talk/polls/viewmodels/PollMainViewModel.kt b/app/src/main/java/com/nextcloud/talk/polls/viewmodels/PollMainViewModel.kt index da8977e56..32f0152d7 100644 --- a/app/src/main/java/com/nextcloud/talk/polls/viewmodels/PollMainViewModel.kt +++ b/app/src/main/java/com/nextcloud/talk/polls/viewmodels/PollMainViewModel.kt @@ -153,7 +153,7 @@ class PollMainViewModel @Inject constructor(private val repository: PollReposito } 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 { |