Fix delete account bug.

This commit is contained in:
Cody Henthorne 2023-10-17 10:33:30 -04:00
parent 097988e046
commit d72e003f8c

View file

@ -102,17 +102,6 @@ class DeleteAccountRepository {
}
Log.i(TAG, "deleteAccount: successfully left all groups.");
Log.i(TAG, "deleteAccount: attempting to remove pin...");
try {
ApplicationDependencies.getKeyBackupService(KbsEnclaves.current()).newPinChangeSession().removePin();
} catch (UnauthenticatedResponseException | IOException e) {
Log.w(TAG, "deleteAccount: failed to remove PIN", e);
onDeleteAccountEvent.accept(DeleteAccountEvent.PinDeletionFailed.INSTANCE);
return;
}
Log.i(TAG, "deleteAccount: successfully removed pin.");
Log.i(TAG, "deleteAccount: attempting to delete account from server...");
try {