changeset 1241:e56dfe0378a1

frontends (quick_app): fixes wrong JID construction when processing getPresenceStatuses result
author souliane <souliane@mailoo.org>
date Sat, 18 Oct 2014 13:02:41 +0200
parents 22adf1eb59f5
children f584fbda4773
files frontends/src/quick_frontend/quick_app.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Fri Oct 17 20:26:01 2014 +0200
+++ b/frontends/src/quick_frontend/quick_app.py	Sat Oct 18 13:02:41 2014 +0200
@@ -219,7 +219,7 @@
             presences = self.bridge.getPresenceStatuses(profile)
             for contact in presences:
                 for res in presences[contact]:
-                    jabber_id = contact + ('/' + res if res else '')
+                    jabber_id = ('%s/%s' % (JID(contact).bare, res)) if res else contact
                     show = presences[contact][res][0]
                     priority = presences[contact][res][1]
                     statuses = presences[contact][res][2]