save encoded avatar when receiving vCard from server

This commit is contained in:
Bronko 2018-04-08 20:58:24 +02:00
parent 879e03449c
commit 36b31259e7
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ class ProfileWindow:
photo_encoded = vcard_[i]['BINVAL']
if photo_encoded == '':
continue
self.avatar_encoded = photo_encoded
photo_decoded = base64.b64decode(photo_encoded.encode('utf-8'))
pixbuf = gtkgui_helpers.get_pixbuf_from_data(photo_decoded)
if pixbuf is None: