Commit d15a9ef0 authored by Saul Ibarra's avatar Saul Ibarra

Simplified code

parent 0e7148b5
...@@ -164,11 +164,8 @@ class PresencePublicationHandler(object): ...@@ -164,11 +164,8 @@ class PresencePublicationHandler(object):
account.xcap_manager.set_offline_status(status) account.xcap_manager.set_offline_status(status)
def set_xcap_icon(self, accounts): def set_xcap_icon(self, accounts):
blink_settings = BlinkSettings() icon_manager = IconManager()
try: icon = Icon(icon_manager.get_image('avatar'), 'image/png')
icon = Icon(file(blink_settings.presence.icon.url.path).read(), 'image/png')
except Exception:
icon = None
for account in accounts: for account in accounts:
account.xcap_manager.set_status_icon(icon) account.xcap_manager.set_status_icon(icon)
......
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