summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2010-10-21 15:30:09 -0400
committerLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2010-12-03 15:50:39 -0500
commitc546279e401390a6586e18fc3e9780c17fa0a2e3 (patch)
tree47aeb0f8f66acd27aafdd76dacc56addcea95e71
parent1497126cdd8b7a8f76adec26e2573bea16ba3ea0 (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.py3
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: