diff src/core/xmpp.py @ 947:61c4755f0394

core (XMPP): fix status in presence
author Goffi <goffi@goffi.org>
date Fri, 28 Mar 2014 19:19:11 +0100
parents e1842ebcb2f3
children 4a577b170809
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):