mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Drop the comment on the custom map style branch
Review feedback: the branch already reads as "use the custom url as it is", so the explanation belongs in the commit rather than the source.
This commit is contained in:
-4
@@ -33,10 +33,6 @@ internal class MapTilerTileServerStyleUriBuilder(
|
|||||||
val mapId = if (darkMode) darkMapId else lightMapId
|
val mapId = if (darkMode) darkMapId else lightMapId
|
||||||
"$baseUrl/$mapId/style.json?key=$apiKey"
|
"$baseUrl/$mapId/style.json?key=$apiKey"
|
||||||
} else {
|
} else {
|
||||||
// A custom style url comes from the homeserver .well-known and is expected to be complete:
|
|
||||||
// it already carries the operator's own credentials, if any. Appending our api key to it
|
|
||||||
// adds a second query string and breaks the request.
|
|
||||||
// See https://github.com/element-hq/element-x-android/issues/7289
|
|
||||||
customMapStyleUrl
|
customMapStyleUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user