Ensure that newly created contacts show the source service.
authorAndrew Flegg <andrew@bleb.org>
Wed, 9 Jun 2010 23:11:28 +0000 (00:11 +0100)
committerAndrew Flegg <andrew@bleb.org>
Wed, 9 Jun 2010 23:11:28 +0000 (00:11 +0100)
package/src/org/maemo/hermes/engine/hermes.py

index c9c4c91..a2cd2c3 100644 (file)
@@ -91,6 +91,7 @@ class Hermes:
             tick_increment = len(contacts) / (len(to_create) or 1)
             print tick_increment, to_create
             for friend in to_create:
+                friend.set_source(service.get_id())
                 self._progress("Creating contacts...", current_tick, total_ticks)
                 current_tick += tick_increment
                 self.create_contact_from_friend(friend)