Do not block CDS if PIN creation failed.
This commit is contained in:
parent
10aecb9390
commit
c33da4a5ae
1 changed files with 7 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue