If SIP address username matches phone number, only show phone number
This commit is contained in:
parent
5f0de830e4
commit
8b224f174a
1 changed files with 3 additions and 0 deletions
|
@ -191,6 +191,9 @@ class ContactViewModel(friend: Friend, async: Boolean = false) : MessageNotifier
|
|||
val friend = contact.value ?: return
|
||||
|
||||
for (address in friend.addresses) {
|
||||
val username = address.username
|
||||
if (username in friend.phoneNumbers) continue
|
||||
|
||||
val value = address.asStringUriOnly()
|
||||
val presenceModel = friend.getPresenceModelForUriOrTel(value)
|
||||
val hasPresence = presenceModel?.basicStatus == PresenceBasicStatus.Open
|
||||
|
|
Loading…
Reference in a new issue