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)) {
|
if (canonicalizedNumber.equals(username)) {
|
||||||
signalServiceAddresses.add(account.getSelfAddress());
|
signalServiceAddresses.add(account.getSelfAddress());
|
||||||
} else {
|
} else {
|
||||||
// TODO get corresponding uuid
|
SignalServiceAddress address = new SignalServiceAddress(null, canonicalizedNumber);
|
||||||
signalServiceAddresses.add(new SignalServiceAddress(null, canonicalizedNumber));
|
ContactInfo contact = account.getContactStore().getContact(address);
|
||||||
|
signalServiceAddresses.add(contact == null
|
||||||
|
? address
|
||||||
|
: contact.getAddress());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return signalServiceAddresses;
|
return signalServiceAddresses;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue