Commit 812ecc98 authored by Adrian Georgescu's avatar Adrian Georgescu

Fixed fetching icons from XCAP presence data

parent 4fb63e28
......@@ -319,7 +319,7 @@ class ContactIcon(object):
if content_type == prescontent.PresenceContentDocument.content_type:
try:
pres_content = prescontent.PresenceContentDocument.parse(content)
data = base64.decodestring(pres_content.data.value)
data = base64.b64decode(pres_content.data.value)
except Exception:
return None
return cls(data, IconDescriptor(url, descriptor_etag or etag))
......
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