Added contact display name to address generated from phone number
This commit is contained in:
parent
f9a3703a18
commit
20dcb23b8a
1 changed files with 1 additions and 0 deletions
|
@ -193,6 +193,7 @@ class ContactViewModel(val contactInternal: Contact) : MessageNotifierViewModel(
|
|||
val hasPresence = presenceModel != null && presenceModel.basicStatus == PresenceBasicStatus.Open
|
||||
val contactAddress = presenceModel?.contact ?: number
|
||||
val address = coreContext.core.interpretUrl(contactAddress)
|
||||
address?.displayName = name
|
||||
val isMe = if (address != null) coreContext.core.defaultAccount?.params?.identityAddress?.weakEqual(address) ?: false else false
|
||||
val secureChatAllowed = !isMe && contact.friend?.getPresenceModelForUriOrTel(number)?.hasCapability(FriendCapability.LimeX3Dh) ?: false
|
||||
val noa = ContactNumberOrAddressData(address, hasPresence, number, isSip = false, showSecureChat = secureChatAllowed, typeLabel = phoneNumber.typeLabel, listener = listener)
|
||||
|
|
Loading…
Reference in a new issue