mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-02-02 11:59:23 +00:00
Search in remote CardDAV contacts if such server is configured
This commit is contained in:
parent
cf901a9c2b
commit
d71966e77d
1 changed files with 5 additions and 2 deletions
|
|
@ -260,12 +260,12 @@ class ContactsListViewModel @UiThread constructor() : AbstractMainViewModel() {
|
|||
previousFilter = filter
|
||||
|
||||
Log.i(
|
||||
"$TAG Asking Magic search for contacts matching filter [$filter], domain [$domain] and in sources Friends/LDAP"
|
||||
"$TAG Asking Magic search for contacts matching filter [$filter], domain [$domain] and in sources Friends/LDAP/CardDAV"
|
||||
)
|
||||
magicSearch.getContactsListAsync(
|
||||
filter,
|
||||
domain,
|
||||
MagicSearch.Source.Friends.toInt() or MagicSearch.Source.LdapServers.toInt(),
|
||||
MagicSearch.Source.Friends.toInt() or MagicSearch.Source.LdapServers.toInt() or MagicSearch.Source.RemoteCardDAV.toInt(),
|
||||
MagicSearch.Aggregation.Friend
|
||||
)
|
||||
}
|
||||
|
|
@ -286,6 +286,9 @@ class ContactsListViewModel @UiThread constructor() : AbstractMainViewModel() {
|
|||
friend.vcard?.generateUniqueId()
|
||||
friend.refKey = friend.vcard?.uid
|
||||
} else {
|
||||
Log.w(
|
||||
"$TAG Friend [${friend.name}] found in SearchResults doesn't have a refKey, using name instead"
|
||||
)
|
||||
friend.refKey = friend.name
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue