Skip to content
Snippets Groups Projects
Commit be246e98 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

update avatar files when we update our vcard

parent f57cd7b0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment