Fixed account prefix applied to contact even if use prefix for chat and calls is toggled off
This commit is contained in:
parent
662d53812b
commit
1d09151a2d
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ class ContactViewModel(friend: Friend, async: Boolean = false) : MessageNotifier
|
|||
val presenceModel = friend.getPresenceModelForUriOrTel(number)
|
||||
val hasPresence = presenceModel != null && presenceModel.basicStatus == PresenceBasicStatus.Open
|
||||
val contactAddress = presenceModel?.contact ?: number
|
||||
val address = coreContext.core.interpretUrl(contactAddress, true)
|
||||
val address = coreContext.core.interpretUrl(
|
||||
contactAddress,
|
||||
LinphoneUtils.applyInternationalPrefix()
|
||||
)
|
||||
address?.displayName = displayName.value.orEmpty()
|
||||
val isMe = if (address != null) {
|
||||
coreContext.core.defaultAccount?.params?.identityAddress?.weakEqual(
|
||||
|
|
Loading…
Reference in a new issue