Read map tiler custom style from matrix .well-known file

Closes #6844
This commit is contained in:
Benoit Marty
2026-05-26 15:25:48 +02:00
parent 1e67c2f77b
commit 4a90768893
20 changed files with 211 additions and 64 deletions
@@ -808,6 +808,12 @@ class RustMatrixClient(
}
}
override suspend fun getMapStyleUrl(): Result<String?> = withContext(sessionDispatcher) {
runCatchingExceptions {
innerClient.tileServer()?.mapStyleUrl
}
}
override suspend fun resetWellKnownConfig(): Result<Unit> {
return runCatchingExceptions {
Timber.d("Resetting well-known config for session $sessionId")
@@ -44,7 +44,8 @@ class RustPushersService(
appDisplayName = setHttpPusherData.appDisplayName,
deviceDisplayName = setHttpPusherData.deviceDisplayName,
profileTag = setHttpPusherData.profileTag,
lang = setHttpPusherData.lang
lang = setHttpPusherData.lang,
append = false,
)
}
.mapFailure { it.mapClientException() }