Inject the Json parser
This commit is contained in:
parent
aff1693697
commit
d277a604bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue