X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/0c7da68d985a3703a6843338d55ef1723f6447e5..9244d1e8a861ce505083e813cf069a96a6622822:/src/main/java/org/asamk/signal/manager/helper/PinHelper.java diff --git a/src/main/java/org/asamk/signal/manager/helper/PinHelper.java b/src/main/java/org/asamk/signal/manager/helper/PinHelper.java index 47ee6b40..b4fa04c4 100644 --- a/src/main/java/org/asamk/signal/manager/helper/PinHelper.java +++ b/src/main/java/org/asamk/signal/manager/helper/PinHelper.java @@ -33,12 +33,12 @@ public class PinHelper { public void removeRegistrationLockPin() throws IOException, UnauthenticatedResponseException { final KeyBackupService.PinChangeSession pinChangeSession = keyBackupService.newPinChangeSession(); + pinChangeSession.disableRegistrationLock(); pinChangeSession.removePin(); } public KbsPinData getRegistrationLockData( - String pin, - LockedException e + String pin, LockedException e ) throws IOException, KeyBackupSystemNoDataException, KeyBackupServicePinException { String basicStorageCredentials = e.getBasicStorageCredentials(); if (basicStorageCredentials == null) { @@ -49,8 +49,7 @@ public class PinHelper { } private KbsPinData getRegistrationLockData( - String pin, - String basicStorageCredentials + String pin, String basicStorageCredentials ) throws IOException, KeyBackupSystemNoDataException, KeyBackupServicePinException { TokenResponse tokenResponse = keyBackupService.getToken(basicStorageCredentials); if (tokenResponse == null || tokenResponse.getTries() == 0) {