Mercurial > libervia-backend
changeset 947:61c4755f0394
core (XMPP): fix status in presence
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 28 Mar 2014 19:19:11 +0100 |
parents | fe181994246a |
children | abd3a75d629c |
files | src/core/xmpp.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/xmpp.py Fri Mar 28 19:11:00 2014 +0100 +++ b/src/core/xmpp.py Fri Mar 28 19:19:11 2014 +0100 @@ -337,6 +337,7 @@ # so we must temporarily switch to wokkel's convention... if 'default' in statuses: statuses[None] = statuses['default'] + del statuses['default'] presence_elt = xmppim.AvailablePresence(entity, show, statuses, priority) if not self.host.trigger.point("presence_available", presence_elt, self.parent): @@ -345,6 +346,7 @@ # ... before switching back if None in statuses: + statuses['default'] = statuses[None] del statuses[None] def subscribed(self, entity):