mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 18:26:57 +00:00
Properly handle LockedException during PIN guess.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user