mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-11 06:44:09 +01:00
Update to specific kotlin syntax since Java8 and Kotlin 1.8 collide now
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
36744542e6
commit
0fa26cc137
@ -120,8 +120,8 @@ class PollRepositoryImpl(private val ncApi: NcApi, private val currentUserProvid
|
|||||||
|
|
||||||
private fun convertVotes(votes: Map<String, Int>?): Map<String, Int> {
|
private fun convertVotes(votes: Map<String, Int>?): Map<String, Int> {
|
||||||
val resultMap: MutableMap<String, Int> = HashMap()
|
val resultMap: MutableMap<String, Int> = HashMap()
|
||||||
votes?.forEach {
|
votes?.forEach { (key, value) ->
|
||||||
resultMap[it.key.replace("option-", "")] = it.value
|
resultMap[key.replace("option-", "")] = value
|
||||||
}
|
}
|
||||||
return resultMap
|
return resultMap
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user