Commit 892bc7af authored by Dan Pascu's avatar Dan Pascu

Do not lose the contact's icon when it's not present in the offline state

parent 588aed12
......@@ -392,7 +392,7 @@ class PresenceSubscriptionHandler(object):
icon_data = UnknownIcon
icon_descriptor = None
else:
icon_data = NoIcon
icon_data = UnknownIcon if state=='offline' else NoIcon
icon_descriptor = None
self._update_contact_presence_state(contact, state, note, icon_descriptor, icon_data)
......
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