Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 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 | 3abc6563a0d2 |
children | e3a9ea76de35 |
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]