Use only phone number from SearchResult if both SIP address and phone numbers are provided and are equal

This commit is contained in:
Sylvain Berfini 2022-03-16 13:10:36 +01:00
parent 13878ee48d
commit 48c10e863e

View file

@ -79,6 +79,9 @@ open class Contact() : Comparable<Contact> {
fullName = friend?.name ?: phoneNumber.orEmpty()
}
if (address != null && address.username == phoneNumber) {
sipAddresses.remove(address)
}
phoneNumbers.add(PhoneNumber(phoneNumber, ""))
}
}