[telepathy-butterfly/master] Fix the callback when refusing a contact (fd.o #24965)

Olivier Le Thanh Duong olivier at lethanh.be
Sat Nov 7 06:44:56 PST 2009


---
 NEWS                              |    1 +
 butterfly/channel/contact_list.py |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 20fd328..da28ce2 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Dependencies:
 Enhancements:
 
 Fixes:
+  * Fix the callback when refusing a contact (fd.o #24965)
 
 telepathy-butterfly-0.5.3 (25-10-2009)
 ======================================
diff --git a/butterfly/channel/contact_list.py b/butterfly/channel/contact_list.py
index 5f38077..1ce81d0 100644
--- a/butterfly/channel/contact_list.py
+++ b/butterfly/channel/contact_list.py
@@ -312,8 +312,8 @@ class ButterflyPublishListChannel(ButterflyListChannel,
         contact = handle.contact
         ab = self._conn.msn_client.address_book
         if contact.is_member(papyon.Membership.PENDING):
-            ab.decline_contact_invitation(contact, False, done_cb=finished_cb,
-                    failed_cb=finished_cb)
+            ab.decline_contact_invitation(contact, False, done_cb=(finished_cb,),
+                    failed_cb=(finished_cb,))
         elif contact.is_member(papyon.Membership.ALLOW):
             ab.disallow_contact(contact, done_cb=(finished_cb,),
                     failed_cb=(finished_cb,))
-- 
1.5.6.5



More information about the telepathy-commits mailing list