Remove extra test on Google server photo data validity
authorMilan Crha <mcrha@redhat.com>
Fri, 4 May 2012 11:15:21 +0000 (13:15 +0200)
committerMilan Crha <mcrha@redhat.com>
Fri, 4 May 2012 11:15:21 +0000 (13:15 +0200)
It sometimes can happen that a contact has filled photo's etag,
while the photo itself is not present. In that case backend skipped
the contact, instead of passing it without photo.

addressbook/backends/google/e-book-backend-google.c

index a6a45a5..de597fd 100644 (file)
@@ -3440,8 +3440,6 @@ _e_contact_new_from_gdata_entry (EBookBackend *backend,
        photo = g_object_get_data (G_OBJECT (entry), "photo");
        photo_etag = gdata_contacts_contact_get_photo_etag (GDATA_CONTACTS_CONTACT (entry));
 
-       g_return_val_if_fail ((photo == NULL) == (photo_etag == NULL), NULL);
-
        if (photo != NULL) {
                /* Photo */
                e_contact_set (E_CONTACT (vcard), E_CONTACT_PHOTO, photo);