mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-21 13:48:11 +00:00
Use only phone number from SearchResult if both SIP address and phone numbers are provided and are equal
This commit is contained in:
parent
dd33e8e328
commit
06dbb87b62
1 changed files with 3 additions and 0 deletions
|
|
@ -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, ""))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue