Permalink: add client url field in MatrixConfiguration

This commit is contained in:
Florian Renaud 2021-09-08 17:23:48 +02:00 committed by Florian Renaud
parent afb49430be
commit 0d344fde03

View file

@ -32,8 +32,12 @@ data class MatrixConfiguration(
"https://scalar-staging.riot.im/scalar/api" "https://scalar-staging.riot.im/scalar/api"
), ),
/** /**
* Optional proxy to connect to the matrix servers * Optional base url to create client permalinks instead of Matrix ones (matrix.to links).
* You can create one using for instance Proxy(proxyType, InetSocketAddress.createUnresolved(hostname, port) */
val clientPermalinkBaseUrl: String? = null,
/**
* Optional proxy to connect to the matrix servers.
* You can create one using for instance Proxy(proxyType, InetSocketAddress.createUnresolved(hostname, port).
*/ */
val proxy: Proxy? = null, val proxy: Proxy? = null,
/** /**
@ -47,7 +51,7 @@ data class MatrixConfiguration(
) { ) {
/** /**
* Can be implemented by your Application class * Can be implemented by your Application class.
*/ */
interface Provider { interface Provider {
fun providesMatrixConfiguration(): MatrixConfiguration fun providesMatrixConfiguration(): MatrixConfiguration