mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 07:37:12 +01:00
- Unifies Location Flows and GeoHash Flows into one
- Make them react to changing location permissions - Adds UI for when the location permission is rejected.
This commit is contained in:
@@ -280,7 +280,13 @@ open class Event(
|
||||
return PoWRank.getCommited(id, commitedPoW)
|
||||
}
|
||||
|
||||
override fun getGeoHash(): String? = tags.firstOrNull { it.size > 1 && it[0] == "g" }?.get(1)?.ifBlank { null }
|
||||
override fun getGeoHash(): String? =
|
||||
tags
|
||||
.filter { it.size > 1 && it[0] == "g" }
|
||||
.maxByOrNull {
|
||||
it[1].length
|
||||
}?.get(1)
|
||||
?.ifBlank { null }
|
||||
|
||||
override fun getReward(): BigDecimal? =
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user