mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Rename fun.
This commit is contained in:
@@ -93,10 +93,10 @@ class RootFlowNode @AssistedInject constructor(
|
|||||||
if (isLoggedIn) {
|
if (isLoggedIn) {
|
||||||
tryToRestoreLatestSession(
|
tryToRestoreLatestSession(
|
||||||
onSuccess = { switchToLoggedInFlow(it) },
|
onSuccess = { switchToLoggedInFlow(it) },
|
||||||
onFailure = { switchToLogoutFlow() }
|
onFailure = { switchToNotLoggedInFlow() }
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
switchToLogoutFlow()
|
switchToNotLoggedInFlow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.launchIn(lifecycleScope)
|
.launchIn(lifecycleScope)
|
||||||
@@ -106,7 +106,7 @@ class RootFlowNode @AssistedInject constructor(
|
|||||||
backstack.safeRoot(NavTarget.LoggedInFlow(sessionId))
|
backstack.safeRoot(NavTarget.LoggedInFlow(sessionId))
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun switchToLogoutFlow() {
|
private fun switchToNotLoggedInFlow() {
|
||||||
matrixClientsHolder.removeAll()
|
matrixClientsHolder.removeAll()
|
||||||
backstack.safeRoot(NavTarget.NotLoggedInFlow)
|
backstack.safeRoot(NavTarget.NotLoggedInFlow)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user