mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Remove unnecessary call to fetchElementWellKnown when the value was up to date in the store in DefaultWellknownRetriever
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
e92016c68e
commit
dbc28df3eb
-1
@@ -68,7 +68,6 @@ class DefaultWellknownRetriever(
|
|||||||
return when (val cacheData = store.get(checkedHost)) {
|
return when (val cacheData = store.get(checkedHost)) {
|
||||||
is WellknownRetrieverResult.Success -> {
|
is WellknownRetrieverResult.Success -> {
|
||||||
Timber.d("Using cached well-known for domain $checkedHost")
|
Timber.d("Using cached well-known for domain $checkedHost")
|
||||||
fetchElementWellKnown(checkedHost, source, store)
|
|
||||||
cacheData
|
cacheData
|
||||||
}
|
}
|
||||||
is WellknownRetrieverResult.Outdated -> {
|
is WellknownRetrieverResult.Outdated -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user