core: return full jid in bridge's getContacts:
getContacts was returning only bare jid of entities, but jids with resources may be present in roster, so this behaviour has been changed.
This commit is contained in:
parent
e14e69c883
commit
ad40509c89
1 changed files with 3 additions and 1 deletions
|
|
@ -503,7 +503,9 @@ class SAT(service.Service):
|
|||
for item in client.roster.getItems(): # we get all items for client's roster
|
||||
# and convert them to expected format
|
||||
attr = client.roster.getAttributes(item)
|
||||
ret.append([item.jid.userhost(), attr, item.groups])
|
||||
# we use full() and not userhost() because jid with resources are allowed
|
||||
# in roster, even if it's not common.
|
||||
ret.append([item.entity.full(), attr, item.groups])
|
||||
return ret
|
||||
|
||||
return client.roster.got_roster.addCallback(got_roster)
|
||||
|
|
|
|||
Loading…
Reference in a new issue