loadingNode: hide ProgressIndicator in some cases.

This commit is contained in:
Benoit Marty 2025-09-30 11:54:43 +02:00
parent fa77166092
commit 36070c3e2b
4 changed files with 10 additions and 5 deletions

View file

@ -281,7 +281,7 @@ class LoggedInFlowNode(
override fun resolve(navTarget: NavTarget, buildContext: BuildContext): Node {
return when (navTarget) {
NavTarget.Placeholder -> loadingNode(buildContext)
NavTarget.Placeholder -> loadingNode(buildContext, showProgressIndicator = false)
NavTarget.LoggedInPermanent -> {
val callback = object : LoggedInNode.Callback {
override fun navigateToNotificationTroubleshoot() {

View file

@ -216,7 +216,7 @@ import timber.log.Timber
return when (navTarget) {
is NavTarget.LoggedInFlow -> {
val matrixClient = matrixSessionCache.getOrNull(navTarget.sessionId)
?: return loadingNode(buildContext).also {
?: return loadingNode(buildContext, showProgressIndicator = false).also {
Timber.w("Couldn't find any session, go through SplashScreen")
}
val inputs = LoggedInAppScopeFlowNode.Inputs(matrixClient)