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 e1abcc6dca
commit 618be9ee7c

View file

@ -321,13 +321,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)