Inject the Json parser

This commit is contained in:
Benoit Marty
2025-08-11 10:49:39 +02:00
parent 25d54f42bb
commit 0666d43e37

View File

@@ -21,8 +21,8 @@ import javax.inject.Inject
@ContributesBinding(SessionScope::class)
class DefaultSessionWellknownRetriever @Inject constructor(
private val matrixClient: MatrixClient,
private val parser: Json,
) : SessionWellknownRetriever {
private val parser by lazy { Json { ignoreUnknownKeys = true } }
private val domain by lazy { matrixClient.userIdServerName() }
override suspend fun getWellKnown(): WellKnown? {