Bugfix: when first replying to a text an error of '0' would appear
authorEd Page <eopage@byu.net>
Tue, 20 Jul 2010 11:06:36 +0000 (06:06 -0500)
committerEd Page <eopage@byu.net>
Tue, 20 Jul 2010 11:06:36 +0000 (06:06 -0500)
src/gv_views.py

index be6b127..f9e5349 100644 (file)
@@ -216,7 +216,7 @@ def collapse_message(message, maxCharsPerLine, maxLines):
 
 
 def _get_contact_numbers(backend, contactId, number):
 
 
 def _get_contact_numbers(backend, contactId, number):
-       if contactId:
+       if contactId and contactId != '0':
                contactPhoneNumbers = list(backend.get_contact_details(contactId))
                uglyContactNumbers = (
                        make_ugly(contactNumber)
                contactPhoneNumbers = list(backend.get_contact_details(contactId))
                uglyContactNumbers = (
                        make_ugly(contactNumber)