Remove displaced account from directory when changing numbers

This commit is contained in:
Chris Eager
2022-01-21 15:18:32 -08:00
committed by Jon Chambers
parent c8367c9b7a
commit 96a680dcf0
2 changed files with 2 additions and 1 deletions

View File

@@ -236,6 +236,7 @@ public class AccountsManager {
if (maybeExistingAccount.isPresent()) {
delete(maybeExistingAccount.get());
directoryQueue.deleteAccount(maybeExistingAccount.get());
displacedUuid = maybeExistingAccount.map(Account::getUuid);
} else {
displacedUuid = Optional.empty();