Do not block CDS if PIN creation failed.

This commit is contained in:
Greyson Parrelli 2023-09-12 09:28:05 -04:00
parent 10aecb9390
commit c33da4a5ae

View file

@ -57,9 +57,13 @@ object ContactDiscovery {
}
if (!SignalStore.registrationValues().isRegistrationComplete) {
Log.w(TAG, "Registration is not yet complete. Skipping, but running a routine to possibly mark it complete.")
RegistrationUtil.maybeMarkRegistrationComplete()
return
if (SignalStore.account().isRegistered && SignalStore.svr().lastPinCreateFailed()) {
Log.w(TAG, "Registration isn't complete, but only because PIN creation failed. Allowing CDS to continue.")
} else {
Log.w(TAG, "Registration is not yet complete. Skipping, but running a routine to possibly mark it complete.")
RegistrationUtil.maybeMarkRegistrationComplete()
return
}
}
refreshRecipients(