mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Update registration to allow PIN entry.
This commit is contained in:
@@ -42,7 +42,7 @@ class PinsForAllSchedule implements MegaphoneSchedule {
|
||||
}
|
||||
|
||||
private static boolean isEnabled() {
|
||||
if (SignalStore.kbsValues().isV2RegistrationLockEnabled()) {
|
||||
if (SignalStore.kbsValues().hasPin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class PinsForAllSchedule implements MegaphoneSchedule {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (newlyRegisteredV1PinUser()) {
|
||||
if (newlyRegisteredRegistrationLockV1User()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -67,11 +67,11 @@ class PinsForAllSchedule implements MegaphoneSchedule {
|
||||
|
||||
private static boolean pinCreationFailedDuringRegistration() {
|
||||
return SignalStore.registrationValues().pinWasRequiredAtRegistration() &&
|
||||
!SignalStore.kbsValues().isV2RegistrationLockEnabled() &&
|
||||
!SignalStore.kbsValues().hasPin() &&
|
||||
!TextSecurePreferences.isV1RegistrationLockEnabled(ApplicationDependencies.getApplication());
|
||||
}
|
||||
|
||||
private static boolean newlyRegisteredV1PinUser() {
|
||||
private static boolean newlyRegisteredRegistrationLockV1User() {
|
||||
return SignalStore.registrationValues().pinWasRequiredAtRegistration() && TextSecurePreferences.isV1RegistrationLockEnabled(ApplicationDependencies.getApplication());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user