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()
|
return super.getError()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override fun registrationLock(): Boolean {
|
||||||
|
return super.registrationLock()
|
||||||
|
}
|
||||||
|
|
||||||
fun wrongPin(): Boolean {
|
fun wrongPin(): Boolean {
|
||||||
return error is KeyBackupSystemWrongPinException
|
return error is KeyBackupSystemWrongPinException
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,7 @@ public abstract class BaseRegistrationLockFragment extends LoggingFragment {
|
||||||
handleSuccessfulPinEntry(pin);
|
handleSuccessfulPinEntry(pin);
|
||||||
} else if (processor.wrongPin()) {
|
} else if (processor.wrongPin()) {
|
||||||
onIncorrectKbsRegistrationLockPin(processor.getToken());
|
onIncorrectKbsRegistrationLockPin(processor.getToken());
|
||||||
} else if (processor.isKbsLocked()) {
|
} else if (processor.isKbsLocked() || processor.registrationLock()) {
|
||||||
onKbsAccountLocked();
|
onKbsAccountLocked();
|
||||||
} else if (processor.rateLimit()) {
|
} else if (processor.rateLimit()) {
|
||||||
onRateLimited();
|
onRateLimited();
|
||||||
|
|
Ładowanie…
Reference in New Issue