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