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 {
|
||||
try {
|
||||
pinHelper.removeRegistrationLockPin();
|
||||
} catch (UnauthenticatedResponseException e) {
|
||||
logger.warn("Failed to remove registration lock pin");
|
||||
}
|
||||
account.setRegistrationLockPin(null, null);
|
||||
|
||||
dependencies.getAccountManager().deleteAccount();
|
||||
|
||||
account.setRegistered(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user