add support for multiple choice polls (#1212)

This commit is contained in:
Konrad Pozniak 2019-04-28 09:58:17 +02:00 committed by GitHub
commit 8d01e54caf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 239 additions and 52 deletions

View file

@ -22,7 +22,7 @@ data class Poll(
}
}
return copy(options = newOptions, votesCount = votesCount + 1, voted = true)
return copy(options = newOptions, votesCount = votesCount + choices.size, voted = true)
}
}