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)) { 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;