android: keep session authenticated on startup when offline
Some checks failed
CI / test (push) Failing after 2m7s

This commit is contained in:
Codex
2026-03-09 15:27:58 +03:00
parent 89755394f7
commit 3eb68cedad
2 changed files with 6 additions and 1 deletions

View File

@@ -101,10 +101,11 @@ class AuthViewModel @Inject constructor(
}
is AppResult.Error -> {
val keepAuthenticatedOffline = result.reason is AppError.Network
_uiState.update {
it.copy(
isCheckingSession = false,
isAuthenticated = false,
isAuthenticated = keepAuthenticatedOffline,
errorMessage = null,
)
}