mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:36:53 +00:00
Use getByPhoneNumberIdentifier in getAccountsForChangeNumber
This commit is contained in:
1 parent
e6c24c373d
commit
f8f60c92ff
2 files changed
+22
-2
No files matched your search
@@ -1148,7 +1148,7 @@ public class AccountsManager extends RedisPubSubAdapter<String, String> implemen
|
||||
Pair<Account, Optional<Account>> getAccountsForChangeNumber(final UUID accountIdentifier, final String targetNumber) {
|
||||
return new Pair<>(accounts.getByAccountIdentifier(accountIdentifier)
|
||||
.orElseThrow(() -> new IllegalArgumentException("Account not found: " + accountIdentifier)),
|
||||
accounts.getByE164(targetNumber));
|
||||
accounts.getByPhoneNumberIdentifier(getPhoneNumberIdentifier(targetNumber)));
|
||||
}
|
||||
|
||||
public UUID getPhoneNumberIdentifier(String e164) {
|
||||
|
||||
Reference in new issue
Block a user