diff options
author | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-09-10 18:27:18 -0400 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-09-10 18:27:18 -0400 |
commit | eb2f00acba9c4be5ff57061b69df9a9551462659 (patch) | |
tree | efe4c97650c7c17fc190edb8f3c4b110afff17a5 | |
parent | 335dd06a93c4cc8b549a5cbc7f652a06dbbcd9ee (diff) |
Give the correct handle when our own avatar is changed remotly
-rw-r--r-- | butterfly/avatars.py | 7 |
1 files 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 |