mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix ClientBuilderEnterpriseHook not returning an updated ClientBuilder
This commit is contained in:
+1
-1
Submodule enterprise updated: 444de7a7d1...c7d77fd9a1
+1
-1
@@ -14,5 +14,5 @@ import io.element.android.libraries.matrix.api.core.SessionId
|
|||||||
* A hook that can be used to customize the [MatrixClientBuilder] for enterprise features.
|
* A hook that can be used to customize the [MatrixClientBuilder] for enterprise features.
|
||||||
*/
|
*/
|
||||||
fun interface ClientBuilderEnterpriseHook {
|
fun interface ClientBuilderEnterpriseHook {
|
||||||
suspend operator fun invoke(clientBuilder: MatrixClientBuilder, sessionId: SessionId)
|
suspend operator fun invoke(clientBuilder: MatrixClientBuilder, sessionId: SessionId): MatrixClientBuilder
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -100,7 +100,7 @@ class RustMatrixClientFactory(
|
|||||||
)
|
)
|
||||||
.homeserverUrl(sessionData.homeserverUrl)
|
.homeserverUrl(sessionData.homeserverUrl)
|
||||||
.username(sessionData.userId)
|
.username(sessionData.userId)
|
||||||
.also { clientBuilderEnterpriseHook(RustMatrixClientBuilder(it), SessionId(sessionData.userId)) }
|
.let { (clientBuilderEnterpriseHook(RustMatrixClientBuilder(it), SessionId(sessionData.userId)) as RustMatrixClientBuilder).inner }
|
||||||
.use { it.build() }
|
.use { it.build() }
|
||||||
|
|
||||||
client.setMediaRetentionPolicy(
|
client.setMediaRetentionPolicy(
|
||||||
|
|||||||
Reference in New Issue
Block a user