Add code which actually updates contacts, don't overwrite unless user
[hermes] / package / src / org / maemo / hermes / engine / hermes.py
index 804f1be..9197b52 100644 (file)
@@ -123,7 +123,9 @@ class Hermes:
         """Update the given contact with information from the given friend."""
         
         print "updating contact ", contact, " with friend ", friend
-        self.updated.append(contact)
+        if friend.update_contact(contact, resync):
+            self.updated.append(contact)
+
         self.matched.append(contact)
         if friend.get_source() is not None:
             contact.add_mapping(friend.get_source())