mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Idx -> Index
This commit is contained in:
committed by
Benoit Marty
parent
4297cfac24
commit
145cd410c7
+2
-2
@@ -33,8 +33,8 @@ interface MatrixAuthenticationService {
|
||||
* Cache index
|
||||
*/
|
||||
|
||||
fun cacheIdx(): Flow<Int>
|
||||
fun incrementCacheIdx()
|
||||
fun cacheIndex(): Flow<Int>
|
||||
fun incrementCacheIndex()
|
||||
|
||||
/*
|
||||
* OIDC part.
|
||||
|
||||
+5
-5
@@ -58,7 +58,7 @@ class RustMatrixAuthenticationService @Inject constructor(
|
||||
private val clock: SystemClock,
|
||||
) : MatrixAuthenticationService {
|
||||
|
||||
private val cacheIdxState = MutableStateFlow(0)
|
||||
private val cacheIndexState = MutableStateFlow(0)
|
||||
|
||||
private val authService: RustAuthenticationService = RustAuthenticationService(
|
||||
basePath = baseDirectory.absolutePath,
|
||||
@@ -73,12 +73,12 @@ class RustMatrixAuthenticationService @Inject constructor(
|
||||
return sessionStore.isLoggedIn()
|
||||
}
|
||||
|
||||
override fun incrementCacheIdx() {
|
||||
cacheIdxState.value++
|
||||
override fun incrementCacheIndex() {
|
||||
cacheIndexState.value++
|
||||
}
|
||||
|
||||
override fun cacheIdx(): Flow<Int> {
|
||||
return cacheIdxState
|
||||
override fun cacheIndex(): Flow<Int> {
|
||||
return cacheIndexState
|
||||
}
|
||||
|
||||
override suspend fun getLatestSessionId(): SessionId? = withContext(coroutineDispatchers.io) {
|
||||
|
||||
+5
-5
@@ -65,14 +65,14 @@ class FakeAuthenticationService : MatrixAuthenticationService {
|
||||
loginError?.let { Result.failure(it) } ?: Result.success(A_USER_ID)
|
||||
}
|
||||
|
||||
private val cacheIdxFlow = MutableStateFlow(0)
|
||||
private val cacheIndexFlow = MutableStateFlow(0)
|
||||
|
||||
override fun cacheIdx(): Flow<Int> {
|
||||
return cacheIdxFlow
|
||||
override fun cacheIndex(): Flow<Int> {
|
||||
return cacheIndexFlow
|
||||
}
|
||||
|
||||
override fun incrementCacheIdx() {
|
||||
cacheIdxFlow.value++
|
||||
override fun incrementCacheIndex() {
|
||||
cacheIndexFlow.value++
|
||||
}
|
||||
|
||||
override suspend fun getOidcUrl(): Result<OidcDetails> = simulateLongTask {
|
||||
|
||||
Reference in New Issue
Block a user