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
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
searchResultsPending = true
fastFetchJob?.cancel()
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(
filterValue,
domain,
filter,
sources,
aggregation
)