From c546279e401390a6586e18fc3e9780c17fa0a2e3 Mon Sep 17 00:00:00 2001 From: Louis-Francis Ratté-Boulianne Date: Thu, 21 Oct 2010 15:30:09 -0400 Subject: bugfix: add proper flags to publish list (CAN_ADD and CAN_REMOVE) Telepathy backend of Folks looks at these flags when adding a new contact. It was working before because Empathy wasn't. --- butterfly/channel/contact_list.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/butterfly/channel/contact_list.py b/butterfly/channel/contact_list.py index 9a36d17..c2f1de3 100644 --- a/butterfly/channel/contact_list.py +++ b/butterfly/channel/contact_list.py @@ -318,7 +318,8 @@ class ButterflyPublishListChannel(ButterflyListChannel, ButterflyListChannel.__init__(self, connection, manager, props, object_path='RosterChannel/List/publish') papyon.event.ContactEventInterface.__init__(self, connection.msn_client) - self.GroupFlagsChanged(0, 0) + self.GroupFlagsChanged(telepathy.CHANNEL_GROUP_FLAG_CAN_ADD | + telepathy.CHANNEL_GROUP_FLAG_CAN_REMOVE, 0) def AddMembers(self, contacts, message): for handle_id in contacts: -- cgit v1.2.3