Skip to content

Commit d277a60

Browse files
committed
Inject the Json parser
1 parent aff1693 commit d277a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/wellknown/impl/src/main/kotlin/io/element/android/libraries/wellknown/impl/DefaultSessionWellknownRetriever.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import javax.inject.Inject
2121
@ContributesBinding(SessionScope::class)
2222
class DefaultSessionWellknownRetriever @Inject constructor(
2323
private val matrixClient: MatrixClient,
24+
private val parser: Json,
2425
) : SessionWellknownRetriever {
25-
private val parser by lazy { Json { ignoreUnknownKeys = true } }
2626
private val domain by lazy { matrixClient.userIdServerName() }
2727

2828
override suspend fun getWellKnown(): WellKnown? {

0 commit comments

Comments
 (0)