[telepathy-butterfly/master] Set the invite message when a new contact is added
Louis-Francis Ratté-Boulianne
louis-francis.ratte-boulianne at collabora.co.uk
Tue Jul 28 08:12:13 PDT 2009
---
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 4a1e929..c7d3be6 100644
--- a/butterfly/channel/contact_list.py
+++ b/butterfly/channel/contact_list.py
@@ -78,7 +78,8 @@ class ButterflyListChannel(
if ad: added.add(handle)
if lp: local_pending.add(handle)
if rp: remote_pending.add(handle)
- self.MembersChanged('', added, (), local_pending, remote_pending, 0,
+ msg = contact.attributes.get('invite_message', '')
+ self.MembersChanged(msg, added, (), local_pending, remote_pending, 0,
telepathy.CHANNEL_GROUP_CHANGE_REASON_NONE)
# papyon.event.AddressBookEventInterface
--
1.5.6.5
More information about the telepathy-commits
mailing list