save encoded avatar when receiving vCard from server
This commit is contained in:
parent
879e03449c
commit
36b31259e7
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ class ProfileWindow:
|
||||||
photo_encoded = vcard_[i]['BINVAL']
|
photo_encoded = vcard_[i]['BINVAL']
|
||||||
if photo_encoded == '':
|
if photo_encoded == '':
|
||||||
continue
|
continue
|
||||||
|
self.avatar_encoded = photo_encoded
|
||||||
photo_decoded = base64.b64decode(photo_encoded.encode('utf-8'))
|
photo_decoded = base64.b64decode(photo_encoded.encode('utf-8'))
|
||||||
pixbuf = gtkgui_helpers.get_pixbuf_from_data(photo_decoded)
|
pixbuf = gtkgui_helpers.get_pixbuf_from_data(photo_decoded)
|
||||||
if pixbuf is None:
|
if pixbuf is None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue