Avoid stable prefix
This commit is contained in:
parent
20c1886fed
commit
67a24b38cb
|
@ -39,7 +39,7 @@ class UrlMapProvider @Inject constructor(
|
|||
|
||||
suspend fun getMapUrl(): String {
|
||||
val upstreamMapUrl = tryOrNull { rawService.getElementWellknown(session.sessionParams) }
|
||||
?.mapTileServerConfig
|
||||
?.getBestMapTileServerConfig()
|
||||
?.mapStyleUrl
|
||||
return upstreamMapUrl ?: fallbackMapUrl
|
||||
}
|
||||
|
|
|
@ -41,12 +41,9 @@ data class ElementWellKnown(
|
|||
val unstableMapTileServerConfig: MapTileServerConfig? = null,
|
||||
|
||||
@Json(name = "m.tile_server")
|
||||
val stableMapTileServerConfig: MapTileServerConfig? = null
|
||||
val mapTileServerConfig: MapTileServerConfig? = null
|
||||
) {
|
||||
|
||||
@Transient
|
||||
var mapTileServerConfig: MapTileServerConfig? = null
|
||||
get() = stableMapTileServerConfig ?: unstableMapTileServerConfig
|
||||
fun getBestMapTileServerConfig() = mapTileServerConfig ?: unstableMapTileServerConfig
|
||||
}
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
|
|
Loading…
Reference in New Issue