Commit adc8b255 authored by Dan Pascu's avatar Dan Pascu

Fixed setting state on state changes

parent 9edb219c
......@@ -912,9 +912,9 @@ class Contact(object):
def _NH_AddressbookContactGotPresenceUpdate(self, notification):
if notification.data.state in ('available', 'away', 'busy', 'offline'):
self.__dict__['state'] = notification.data.state
self.state = notification.data.state
else:
self.__dict__['state'] = 'unknown'
self.state = 'unknown'
self.note = notification.data.note
if notification.data.icon_data:
icon = IconManager().store_data(self.settings.id, notification.data.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