Skip to content

Commit

Permalink
Delete username link when deleting username
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed May 1, 2024
1 parent 3f31f1a commit 90b1e4b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ private void tryToSetUsernameLink(Username username) {
}

public void deleteUsername() throws IOException {
dependencies.getAccountManager().deleteUsernameLink();
account.setUsernameLink(null);
dependencies.getAccountManager().deleteUsername();
account.setUsername(null);
logger.debug("[deleteUsername] Successfully deleted the username.");
Expand Down

0 comments on commit 90b1e4b

Please sign in to comment.