Idx -> Index

This commit is contained in:
Benoit Marty 2023-06-23 15:20:19 +02:00 committed by Benoit Marty
parent 4297cfac24
commit 145cd410c7
5 changed files with 17 additions and 17 deletions

View file

@ -91,8 +91,8 @@ class RootFlowNode @AssistedInject constructor(
authenticationService.isLoggedIn()
.distinctUntilChanged()
.combine(
authenticationService.cacheIdx().onEach {
Timber.v("cacheIdx=$it")
authenticationService.cacheIndex().onEach {
Timber.v("cacheIndex=$it")
matrixClientsHolder.removeAll()
}
) { isLoggedIn, cacheIdx -> isLoggedIn to cacheIdx }
@ -243,9 +243,9 @@ class RootFlowNode @AssistedInject constructor(
}
private suspend fun attachSession(sessionId: SessionId): LoggedInFlowNode {
val cacheIdx = authenticationService.cacheIdx().first()
val cacheIndex = authenticationService.cacheIndex().first()
return attachChild {
backstack.newRoot(NavTarget.LoggedInFlow(sessionId, cacheIdx))
backstack.newRoot(NavTarget.LoggedInFlow(sessionId, cacheIndex))
}
}
}