mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Move cache management to a dedicated class and in the setting module, for clarity.
This commit is contained in:
committed by
Benoit Marty
parent
cc1c3c8f7b
commit
b6920afb7f
-10
@@ -65,16 +65,6 @@ class FakeAuthenticationService : MatrixAuthenticationService {
|
||||
loginError?.let { Result.failure(it) } ?: Result.success(A_USER_ID)
|
||||
}
|
||||
|
||||
private val cacheIndexFlow = MutableStateFlow(0)
|
||||
|
||||
override fun cacheIndex(): Flow<Int> {
|
||||
return cacheIndexFlow
|
||||
}
|
||||
|
||||
override fun incrementCacheIndex() {
|
||||
cacheIndexFlow.value++
|
||||
}
|
||||
|
||||
override suspend fun getOidcUrl(): Result<OidcDetails> = simulateLongTask {
|
||||
oidcError?.let { Result.failure(it) } ?: Result.success(A_OIDC_DATA)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user