From eb2f00acba9c4be5ff57061b69df9a9551462659 Mon Sep 17 00:00:00 2001 From: Louis-Francis Ratté-Boulianne Date: Fri, 10 Sep 2010 18:27:18 -0400 Subject: Give the correct handle when our own avatar is changed remotly --- butterfly/avatars.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/butterfly/avatars.py b/butterfly/avatars.py index 039a6de..14b6be0 100644 --- a/butterfly/avatars.py +++ b/butterfly/avatars.py @@ -127,8 +127,11 @@ class ButterflyAvatars(\ avatar_token = contact.msn_object._data_sha.encode("hex") else: avatar_token = "" - handle = ButterflyHandleFactory(self, 'contact', - contact.account, contact.network_id) + if contact is self.msn_client.profile: + handle = ButterflyHandleFactory(self, 'self') + else: + handle = ButterflyHandleFactory(self, 'contact', + contact.account, contact.network_id) self.AvatarUpdated(handle, avatar_token) # papyon.event.ProfileEventInterface -- cgit v1.2.3