mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-09-22 06:29:04 +00:00
Remove registration lock pin before deleting account
This commit is contained in:
parent
7a3522dc01
commit
1f0c2d5c78
@ -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…
x
Reference in New Issue
Block a user