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 2f2f5e09c5
commit a436f2f8d3

View file

@ -62,6 +62,9 @@ class ContactStore
search = search.toLowerCase() search = search.toLowerCase()
matchFunction = (contact) -> matchFunction = (contact) ->
# For the time being, we never return contacts that are missing
# email addresses
return false unless contact.email
# - email (bengotow@gmail.com) # - email (bengotow@gmail.com)
# - name parts (Ben, Go) # - name parts (Ben, Go)
# - name full (Ben Gotow) # - name full (Ben Gotow)