mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Improved bodyless friendlist presence received processing
This commit is contained in:
parent
7fdbaf5fd6
commit
6f1439756e
1 changed files with 8 additions and 2 deletions
|
|
@ -160,19 +160,25 @@ class ContactsManager
|
|||
if (friendList.isSubscriptionBodyless) {
|
||||
Log.i("$TAG Bodyless friendlist [${friendList.displayName}] presence received")
|
||||
|
||||
var atLeastOneFriendAdded = false
|
||||
for (friend in friends) {
|
||||
if (friend != null) {
|
||||
val address = friend.address
|
||||
if (address != null) {
|
||||
Log.d(
|
||||
Log.i(
|
||||
"$TAG Newly discovered SIP Address [${address.asStringUriOnly()}] for friend [${friend.name}] in bodyless list [${friendList.displayName}]"
|
||||
)
|
||||
newContactAddedWithSipUri(friend, address)
|
||||
atLeastOneFriendAdded = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
notifyContactsListChanged()
|
||||
if (atLeastOneFriendAdded) {
|
||||
notifyContactsListChanged()
|
||||
} else {
|
||||
Log.w("$TAG No new friend detected in the received bodyless friendlist, not refreshing contacts in app")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue