mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 18:14:27 +01:00
Remove registration lock pin before deleting account
This commit is contained in:
@@ -385,6 +385,13 @@ public class Manager implements Closeable {
|
||||
}
|
||||
|
||||
public void deleteAccount() throws IOException {
|
||||
try {
|
||||
pinHelper.removeRegistrationLockPin();
|
||||
} catch (UnauthenticatedResponseException e) {
|
||||
logger.warn("Failed to remove registration lock pin");
|
||||
}
|
||||
account.setRegistrationLockPin(null, null);
|
||||
|
||||
dependencies.getAccountManager().deleteAccount();
|
||||
|
||||
account.setRegistered(false);
|
||||
|
||||
Reference in New Issue
Block a user