Updating the comment on why we filter those numbers out
[gc-dialer] / src / backends / gv_backend.py
index 9cbba74..db2c341 100644 (file)
@@ -168,9 +168,11 @@ class GVDialer(object):
                if self._contacts is None:
                        self._update_contacts_cache()
                contactDetails = self._contacts[contactId]
+               # Filtering out lack of a phoneType because those are just things like faxes
                return (
                        (number["phoneType"], number["phoneNumber"])
                        for number in contactDetails["numbers"]
+                       if "phoneType" in number
                )
 
        def get_messages(self):