Provide the user agent to RustMatrixAuthenticationService

This commit is contained in:
Benoit Marty 2023-06-29 13:07:23 +02:00
parent b553c73a9b
commit 9bd4aff1e7

View file

@ -60,15 +60,13 @@ class RustMatrixAuthenticationService @Inject constructor(
private val userAgentProvider: UserAgentProvider,
) : MatrixAuthenticationService {
// TODO Provide user agent to RustAuthenticationService
// https://github.com/matrix-org/matrix-rust-sdk/issues/2156
private val authService: RustAuthenticationService = RustAuthenticationService(
basePath = baseDirectory.absolutePath,
passphrase = null,
// TODO Oidc
// oidcClientMetadata = oidcClientMetadata,
userAgent = userAgentProvider.provide(),
customSlidingSyncProxy = null,
userAgent = null, // TODO
)
private var currentHomeserver = MutableStateFlow<MatrixHomeServerDetails?>(null)