Inject the Json parser

This commit is contained in:
Benoit Marty 2025-08-11 10:49:39 +02:00
parent aff1693697
commit d277a604bb

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? {