mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fixed duplicated SIP addresses issue
This commit is contained in:
parent
b2a89a46ca
commit
464e8b4899
1 changed files with 5 additions and 2 deletions
|
|
@ -114,9 +114,12 @@ class ContactViewModel : ViewModel() {
|
|||
for (number in friend.phoneNumbersWithLabel) {
|
||||
val presenceModel = friend.getPresenceModelForUriOrTel(number.phoneNumber)
|
||||
if (presenceModel != null && !presenceModel.contact.isNullOrEmpty()) {
|
||||
// Show linked SIP address
|
||||
// Show linked SIP address if not already stored as-is
|
||||
val contact = presenceModel.contact
|
||||
if (!contact.isNullOrEmpty()) {
|
||||
val found = addressesAndNumbers.find {
|
||||
it.displayedValue == contact
|
||||
}
|
||||
if (!contact.isNullOrEmpty() && found == null) {
|
||||
val address = core.interpretUrl(contact, true)
|
||||
if (address != null) {
|
||||
val data = ContactNumberOrAddressModel(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue