fix(contacts): No longer allow autocompletion to contacts without emails

This commit is contained in:
Ben Gotow 2015-07-22 15:53:46 -07:00
parent 2f6092d342
commit 84db1ee5f3

View file

@ -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)