Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
1240:22adf1eb59f5 | 1241:e56dfe0378a1 |
---|---|
217 self.newContactHandler(*contact, profile=profile) | 217 self.newContactHandler(*contact, profile=profile) |
218 | 218 |
219 presences = self.bridge.getPresenceStatuses(profile) | 219 presences = self.bridge.getPresenceStatuses(profile) |
220 for contact in presences: | 220 for contact in presences: |
221 for res in presences[contact]: | 221 for res in presences[contact]: |
222 jabber_id = contact + ('/' + res if res else '') | 222 jabber_id = ('%s/%s' % (JID(contact).bare, res)) if res else contact |
223 show = presences[contact][res][0] | 223 show = presences[contact][res][0] |
224 priority = presences[contact][res][1] | 224 priority = presences[contact][res][1] |
225 statuses = presences[contact][res][2] | 225 statuses = presences[contact][res][2] |
226 self.presenceUpdateHandler(jabber_id, show, priority, statuses, profile) | 226 self.presenceUpdateHandler(jabber_id, show, priority, statuses, profile) |
227 data = self.bridge.getEntityData(contact, ['avatar', 'nick'], profile) | 227 data = self.bridge.getEntityData(contact, ['avatar', 'nick'], profile) |