Fix push token timeout incorrectly preventing registration.

This commit is contained in:
Cody Henthorne
2024-10-23 10:21:46 -04:00
committed by Greyson Parrelli
parent 267ef66517
commit c57994eb1b

View File

@@ -481,8 +481,8 @@ object RegistrationRepository {
} else {
Log.i(TAG, "Push challenge timed out.")
}
Log.i(TAG, "Push challenge unsuccessful. Updating registration state accordingly.")
return@withContext NetworkResult.ApplicationError<RegistrationSessionMetadataResponse>(NullPointerException())
Log.i(TAG, "Push challenge unsuccessful. Continuing with session created without one.")
return@withContext sessionCreationResponse
} catch (ex: Exception) {
Log.w(TAG, "Exception caught, but the earlier try block should have caught it?", ex)
return@withContext NetworkResult.ApplicationError<RegistrationSessionMetadataResponse>(ex)