Fixed contact not updated when company or job title was removed from native contact

This commit is contained in:
Sylvain Berfini 2025-12-08 15:25:23 +01:00
parent 28b9e7fbb3
commit b446e86708

View file

@ -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)