diff options
author | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-10-21 15:30:09 -0400 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-12-03 15:50:39 -0500 |
commit | c546279e401390a6586e18fc3e9780c17fa0a2e3 (patch) | |
tree | 47aeb0f8f66acd27aafdd76dacc56addcea95e71 | |
parent | 1497126cdd8b7a8f76adec26e2573bea16ba3ea0 (diff) |
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.
-rw-r--r-- | butterfly/channel/contact_list.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |