Remove displaced account from directory when changing numbers

This commit is contained in:
Chris Eager authored and Jon Chambers committed 2022-01-21 18:46:11 -05:00
1 parent c8367c9b7a
commit 96a680dcf0
2 files changed
+2 -1

No files matched your search

@@ -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();