summaryrefslogtreecommitdiff
path: root/sunshine/channel/contact_list.py
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-04-08 22:45:09 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-04-08 22:45:09 +0200
commit9b47417aa8dd8eb209a3a2a8ffef2e8ace96e0df (patch)
treeddfc1758c290283b54b45bf7c7b79eceda73ccf2 /sunshine/channel/contact_list.py
parentf5540a41be97210d194263d0bf21170524469c69 (diff)
Fixes in capabilities.
Diffstat (limited to 'sunshine/channel/contact_list.py')
-rw-r--r--sunshine/channel/contact_list.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sunshine/channel/contact_list.py b/sunshine/channel/contact_list.py
index 9ec893e..63bcaa4 100644
--- a/sunshine/channel/contact_list.py
+++ b/sunshine/channel/contact_list.py
@@ -179,6 +179,8 @@ class SunshineListChannel(
if ad or lp or rp:
handle = SunshineHandleFactory(self._conn_ref(), 'contact',
contact.uin, None)
+ #capabilities
+ self._conn_ref().contactAdded(handle)
if ad: added.add(handle)
if lp: local_pending.add(handle)
if rp: remote_pending.add(handle)
@@ -229,9 +231,10 @@ class SunshineSubscribeListChannel(SunshineListChannel):
#and group
if self._conn_ref().pending_contacts_to_group.has_key(handle.name):
logger.info("Trying to add temporary group.")
- print str(self._conn_ref().pending_contacts_to_group)
- print str(self._conn_ref().pending_contacts_to_group[handle.name])
+ #print str(self._conn_ref().pending_contacts_to_group)
+ #print str(self._conn_ref().pending_contacts_to_group[handle.name])
handle.contact.updateGroups(self._conn_ref().pending_contacts_to_group[handle.name])
+ self._conn_ref().contactAdded(handle)
logger.info("Contact added.")
def RemoveMembers(self, contacts, message):