mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Remove registration lock pin before deleting account
This commit is contained in:
parent
7a3522dc01
commit
1f0c2d5c78
1 changed files with 7 additions and 0 deletions
|
@ -385,6 +385,13 @@ public class Manager implements Closeable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deleteAccount() throws IOException {
|
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();
|
dependencies.getAccountManager().deleteAccount();
|
||||||
|
|
||||||
account.setRegistered(false);
|
account.setRegistered(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue