comparison src/browser/libervia_main.py @ 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 b07f0fe2763a
children e1a773a64fb6
comparison
equal deleted inserted replaced
575:f8a355bede6a 576:daa9be94e88f
848 848
849 def _getPresenceStatusesCb(self, presence_data): 849 def _getPresenceStatusesCb(self, presence_data):
850 for entity in presence_data: 850 for entity in presence_data:
851 for resource in presence_data[entity]: 851 for resource in presence_data[entity]:
852 args = presence_data[entity][resource] 852 args = presence_data[entity][resource]
853 self._presenceUpdateCb("%s/%s" % (entity, resource), *args) 853 full = ('%s/%s' % (jid.JID(entity).bare, resource)) if resource else entity
854 self._presenceUpdateCb(full, *args)
854 855
855 def _getRoomsJoinedCb(self, room_data): 856 def _getRoomsJoinedCb(self, room_data):
856 for room in room_data: 857 for room in room_data:
857 self._roomJoinedCb(*room) 858 self._roomJoinedCb(*room)
858 859