android: keep session authenticated on startup when offline
Some checks failed
CI / test (push) Failing after 2m7s
Some checks failed
CI / test (push) Failing after 2m7s
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user