فهرست منبع

hide end poll button for edit poll mode

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 2 سال پیش
والد
کامیت
84bcd0c273
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/src/main/java/com/nextcloud/talk/polls/viewmodels/PollMainViewModel.kt

+ 1 - 1
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 {