mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
fix(contacts): No longer allow autocompletion to contacts without emails
This commit is contained in:
parent
2f6092d342
commit
84db1ee5f3
|
@ -62,6 +62,9 @@ class ContactStore
|
|||
search = search.toLowerCase()
|
||||
|
||||
matchFunction = (contact) ->
|
||||
# For the time being, we never return contacts that are missing
|
||||
# email addresses
|
||||
return false unless contact.email
|
||||
# - email (bengotow@gmail.com)
|
||||
# - name parts (Ben, Go)
|
||||
# - name full (Ben Gotow)
|
||||
|
|
Loading…
Reference in a new issue