Renamed variable to increase code readability

This commit is contained in:
Sylvain Berfini 2023-07-11 15:09:42 +02:00
parent 794233c25a
commit d623b597b5

View file

@ -119,17 +119,17 @@ class ContactsListViewModel : ViewModel() {
previousFilter = filterValue previousFilter = filterValue
val domain = if (sipContactsSelected.value == true) coreContext.core.defaultAccount?.params?.domain ?: "" else "" val domain = if (sipContactsSelected.value == true) coreContext.core.defaultAccount?.params?.domain ?: "" else ""
val filter = MagicSearchSource.Friends.toInt() or MagicSearchSource.LdapServers.toInt() val sources = MagicSearchSource.Friends.toInt() or MagicSearchSource.LdapServers.toInt()
val aggregation = MagicSearchAggregation.Friend val aggregation = MagicSearchAggregation.Friend
searchResultsPending = true searchResultsPending = true
fastFetchJob?.cancel() fastFetchJob?.cancel()
Log.i( Log.i(
"[Contacts] Asking Magic search for contacts matching filter [$filterValue], domain [$domain] and in sources [$filter]" "[Contacts] Asking Magic search for contacts matching filter [$filterValue], domain [$domain] and in sources [$sources]"
) )
coreContext.contactsManager.magicSearch.getContactsListAsync( coreContext.contactsManager.magicSearch.getContactsListAsync(
filterValue, filterValue,
domain, domain,
filter, sources,
aggregation aggregation
) )