projects
/
gc-dialer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A case was made for keeping in the unknown phone types
[gc-dialer]
/
src
/
backends
/
gv_backend.py
diff --git
a/src/backends/gv_backend.py
b/src/backends/gv_backend.py
index
db2c341
..
16aef65
100644
(file)
--- a/
src/backends/gv_backend.py
+++ b/
src/backends/gv_backend.py
@@
-168,11
+168,10
@@
class GVDialer(object):
if self._contacts is None:
self._update_contacts_cache()
contactDetails = self._contacts[contactId]
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
+ # Defaulting phoneTypes because those are just things like faxes
return (
return (
- (number["phoneType"], number["phoneNumber"])
+ (number.get("phoneType", ""), number["phoneNumber"])
for number in contactDetails["numbers"]
for number in contactDetails["numbers"]
- if "phoneType" in number
)
def get_messages(self):
)
def get_messages(self):