mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Get uuids from contact store when resolving numbers
This commit is contained in:
parent
26aa31edc2
commit
efa1c43b0b
1 changed files with 5 additions and 2 deletions
|
@ -1138,8 +1138,11 @@ public class Manager implements Signal {
|
|||
if (canonicalizedNumber.equals(username)) {
|
||||
signalServiceAddresses.add(account.getSelfAddress());
|
||||
} else {
|
||||
// TODO get corresponding uuid
|
||||
signalServiceAddresses.add(new SignalServiceAddress(null, canonicalizedNumber));
|
||||
SignalServiceAddress address = new SignalServiceAddress(null, canonicalizedNumber);
|
||||
ContactInfo contact = account.getContactStore().getContact(address);
|
||||
signalServiceAddresses.add(contact == null
|
||||
? address
|
||||
: contact.getAddress());
|
||||
}
|
||||
}
|
||||
return signalServiceAddresses;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue