From be246e984d925457d3bc192598b9ece57eabf11d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 11 Apr 2006 18:28:31 +0000 Subject: [PATCH] update avatar files when we update our vcard --- src/common/connection_handlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 946d5be9d..986809e04 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -854,6 +854,8 @@ class ConnectionVcard: vcard['PHOTO'].has_key('BINVAL'): photo = vcard['PHOTO']['BINVAL'] photo_decoded = base64.decodestring(photo) + our_jid = gajim.get_jid_from_account(self.name) + gajim.interface.save_avatar_files(our_jid, photo_decoded) avatar_sha = sha.sha(photo_decoded).hexdigest() iq2.getTag('PHOTO').setTagData('SHA', avatar_sha)