Get uuids from contact store when resolving numbers

This commit is contained in:
AsamK 2020-03-24 14:34:00 +01:00
parent 26aa31edc2
commit efa1c43b0b

View file

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