changeset 576:daa9be94e88f

browser_side: fixes wrong JID construction when processing getPresenceStatuses result
author souliane <souliane@mailoo.org>
date Fri, 17 Oct 2014 20:38:38 +0200
parents f8a355bede6a
children e1a773a64fb6
files src/browser/libervia_main.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Sat Oct 18 13:54:13 2014 +0200
+++ b/src/browser/libervia_main.py	Fri Oct 17 20:38:38 2014 +0200
@@ -850,7 +850,8 @@
         for entity in presence_data:
             for resource in presence_data[entity]:
                 args = presence_data[entity][resource]
-                self._presenceUpdateCb("%s/%s" % (entity, resource), *args)
+                full = ('%s/%s' % (jid.JID(entity).bare, resource)) if resource else entity
+                self._presenceUpdateCb(full, *args)
 
     def _getRoomsJoinedCb(self, room_data):
         for room in room_data: