Fixed displayed SIP URI in call history details in case we find a matching contact that has a different SIP URI in addition to the one used for the call

This commit is contained in:
Sylvain Berfini 2025-03-24 13:36:16 +01:00
parent b22ab7024e
commit 6767bc09f9

View file

@ -98,9 +98,9 @@ class CallLogModel
friendExists = coreContext.contactsManager.isContactAvailable(friend)
}
displayedAddress = if (corePreferences.onlyDisplaySipUriUsername) {
avatarModel.friend.address?.username ?: address.username ?: ""
address.username ?: ""
} else {
avatarModel.friend.address?.asStringUriOnly() ?: address.asStringUriOnly()
sipUri
}
iconResId = LinphoneUtils.getCallIconResId(callLog.status, callLog.dir)