fix: prevent showing of contacts without phone numbers.

This commit is contained in:
ismailnurudeen
2023-04-16 17:34:19 +01:00
parent 8fa124680a
commit 725a8c41e4
8 changed files with 10 additions and 11 deletions

View File

@ -24,7 +24,7 @@ class RecentsHelper(private val context: Context) {
return@ensureBackgroundThread
}
ContactsHelper(context).getContacts(false) { contacts ->
ContactsHelper(context).getContacts(showOnlyContactsWithNumbers = true) { contacts ->
val privateContacts = MyContactsContentProvider.getContacts(context, privateCursor)
if (privateContacts.isNotEmpty()) {
contacts.addAll(privateContacts)