Commit 1703a975 authored by Dan Pascu's avatar Dan Pascu

Do not reset user icon when adding an account to blink

parent 80f0004e
...@@ -242,11 +242,9 @@ class PresencePublicationHandler(object): ...@@ -242,11 +242,9 @@ class PresencePublicationHandler(object):
def _NH_SIPAccountDidDiscoverXCAPSupport(self, notification): def _NH_SIPAccountDidDiscoverXCAPSupport(self, notification):
account = notification.sender account = notification.sender
with account.xcap_manager.transaction():
state = BlinkPresenceState(account).offline_state
icon_data = IconManager().get_image('avatar') icon_data = IconManager().get_image('avatar')
account.xcap_manager.set_offline_status(OfflineStatus(state) if state is not None else None) if icon_data is not None:
account.xcap_manager.set_status_icon(Icon(icon_data, 'image/png') if icon_data is not None else None) account.xcap_manager.set_status_icon(Icon(icon_data, 'image/png'))
@run_in_gui_thread @run_in_gui_thread
def _NH_XCAPManagerDidReloadData(self, notification): def _NH_XCAPManagerDidReloadData(self, notification):
......
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