From 84db1ee5f3cad45c8c678c210ed41d24fa4d4d2b Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 22 Jul 2015 15:53:46 -0700 Subject: [PATCH] fix(contacts): No longer allow autocompletion to contacts without emails --- src/flux/stores/contact-store.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flux/stores/contact-store.coffee b/src/flux/stores/contact-store.coffee index 8a4c02456..254fa580a 100644 --- a/src/flux/stores/contact-store.coffee +++ b/src/flux/stores/contact-store.coffee @@ -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)