mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 01:18:04 +01:00
Remove displaced account from directory when changing numbers
This commit is contained in:
committed by
Jon Chambers
parent
c8367c9b7a
commit
96a680dcf0
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user