Use only phone number from SearchResult if both SIP address and phone numbers are provided and are equal
This commit is contained in:
parent
13878ee48d
commit
48c10e863e
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ open class Contact() : Comparable<Contact> {
|
||||||
fullName = friend?.name ?: phoneNumber.orEmpty()
|
fullName = friend?.name ?: phoneNumber.orEmpty()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (address != null && address.username == phoneNumber) {
|
||||||
|
sipAddresses.remove(address)
|
||||||
|
}
|
||||||
phoneNumbers.add(PhoneNumber(phoneNumber, ""))
|
phoneNumbers.add(PhoneNumber(phoneNumber, ""))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue