mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed contact not updated when company or job title was removed from native contact
This commit is contained in:
parent
28b9e7fbb3
commit
b446e86708
1 changed files with 3 additions and 6 deletions
|
|
@ -319,13 +319,10 @@ class ContactViewModel
|
|||
contact.postValue(ContactAvatarModel(friend))
|
||||
|
||||
val organization = friend.organization
|
||||
if (!organization.isNullOrEmpty()) {
|
||||
company.postValue(organization!!)
|
||||
}
|
||||
company.postValue(organization.orEmpty())
|
||||
|
||||
val jobTitle = friend.jobTitle
|
||||
if (!jobTitle.isNullOrEmpty()) {
|
||||
title.postValue(jobTitle!!)
|
||||
}
|
||||
title.postValue(jobTitle.orEmpty())
|
||||
|
||||
val addressesAndNumbers = friend.getListOfSipAddressesAndPhoneNumbers(listener)
|
||||
sipAddressesAndPhoneNumbers.postValue(addressesAndNumbers)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue