projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a1133bf
)
Forcing an initial announcing of existing contacts
author
Ed Page
<eopage@byu.net>
Sat, 3 Oct 2009 23:16:42 +0000
(18:16 -0500)
committer
Ed Page
<eopage@byu.net>
Sat, 3 Oct 2009 23:16:42 +0000
(18:16 -0500)
src/channel/contact_list.py
patch
|
blob
|
history
diff --git
a/src/channel/contact_list.py
b/src/channel/contact_list.py
index
b51a050
..
301e95b
100644
(file)
--- a/
src/channel/contact_list.py
+++ b/
src/channel/contact_list.py
@@
-35,6
+35,10
@@
class AllContactsListChannel(AbstractListChannel):
)
self.GroupFlagsChanged(0, 0)
)
self.GroupFlagsChanged(0, 0)
+ addressbook = connection.session.addressbook
+ contacts = addressbook.get_contacts()
+ self._process_refresh(addressbook, contacts, [])
+
@coroutines.func_sink
@coroutines.expand_positional
@gobject_utils.async
@coroutines.func_sink
@coroutines.expand_positional
@gobject_utils.async
@@
-45,6
+49,9
@@
class AllContactsListChannel(AbstractListChannel):
@todo This currently does not handle people with multiple phone
numbers, yay that'll be annoying to resolve
"""
@todo This currently does not handle people with multiple phone
numbers, yay that'll be annoying to resolve
"""
+ self._process_refresh(addressbook, added, removed)
+
+ def _process_refresh(self, addressbook, added, removed):
connection = self._conn
handlesAdded = [
handle.create_handle(connection, "contact", contactId)
connection = self._conn
handlesAdded = [
handle.create_handle(connection, "contact", contactId)