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)