kopia lustrzana https://github.com/ryukoposting/Signal-Android
Properly handle LockedException during PIN guess.
rodzic
d48632d09d
commit
4ba4df706e
|
@ -27,6 +27,10 @@ class VerifyCodeWithRegistrationLockResponseProcessor(
|
|||
return super.getError()
|
||||
}
|
||||
|
||||
public override fun registrationLock(): Boolean {
|
||||
return super.registrationLock()
|
||||
}
|
||||
|
||||
fun wrongPin(): Boolean {
|
||||
return error is KeyBackupSystemWrongPinException
|
||||
}
|
||||
|
|
|
@ -180,7 +180,7 @@ public abstract class BaseRegistrationLockFragment extends LoggingFragment {
|
|||
handleSuccessfulPinEntry(pin);
|
||||
} else if (processor.wrongPin()) {
|
||||
onIncorrectKbsRegistrationLockPin(processor.getToken());
|
||||
} else if (processor.isKbsLocked()) {
|
||||
} else if (processor.isKbsLocked() || processor.registrationLock()) {
|
||||
onKbsAccountLocked();
|
||||
} else if (processor.rateLimit()) {
|
||||
onRateLimited();
|
||||
|
|
Ładowanie…
Reference in New Issue