Commit 0e1bc84a authored by Dan Pascu's avatar Dan Pascu

Fixed race condition by using the newly added url attribute on XCAP Icons

parent 30bd6e72
......@@ -257,7 +257,7 @@ class PresencePublicationHandler(object):
if status_icon:
icon_hash = hashlib.sha1(status_icon.data).hexdigest()
icon_desc = IconDescriptor(notification.sender.status_icon.uri, icon_hash)
icon_desc = IconDescriptor(status_icon.url, icon_hash)
if not blink_settings.presence.icon or blink_settings.presence.icon.etag != icon_hash:
icon = icon_manager.store_data('avatar', status_icon.data)
blink_settings.presence.icon = IconDescriptor(FileURL(icon.filename), icon_hash) if icon is not None else 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