Commit 36b31259 authored by Bronko's avatar Bronko

save encoded avatar when receiving vCard from server

parent 879e0344
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment