mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed duplicated contacts in start call / conversation list
This commit is contained in:
parent
7b8b92706b
commit
2c2beb5725
1 changed files with 5 additions and 2 deletions
|
|
@ -254,9 +254,12 @@ abstract class AddressSelectionViewModel @UiThread constructor() : DefaultAccoun
|
|||
if (address != null) {
|
||||
val friend = coreContext.contactsManager.findContactByAddress(address)
|
||||
if (friend != null) {
|
||||
val found = contactsList.find { it.friend == friend }
|
||||
if (found != null) continue
|
||||
|
||||
val model = ConversationContactOrSuggestionModel(address, friend = friend)
|
||||
val avatarModel = coreContext.contactsManager.getContactAvatarModelForAddress(
|
||||
address
|
||||
val avatarModel = coreContext.contactsManager.getContactAvatarModelForFriend(
|
||||
friend
|
||||
)
|
||||
model.avatarModel.postValue(avatarModel)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue