mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
If SIP address username matches phone number, only show phone number
This commit is contained in:
parent
6bbfe90d4e
commit
b458b9afee
1 changed files with 3 additions and 0 deletions
|
|
@ -191,6 +191,9 @@ class ContactViewModel(friend: Friend, async: Boolean = false) : ErrorReportingV
|
|||
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…
Add table
Reference in a new issue