comparison sat/core/sat_main.py @ 2597:9446f1ea9eac

core: discoFindByFeatures now return only available resources
author Goffi <goffi@goffi.org>
date Fri, 25 May 2018 10:52:01 +0200
parents 973d4551ffae
children 56f94936df1e
comparison
equal deleted inserted replaced
2596:93d64ce7a429 2597:9446f1ea9eac
726 else: 726 else:
727 if bare_jids: 727 if bare_jids:
728 resources = [None] 728 resources = [None]
729 else: 729 else:
730 try: 730 try:
731 resources = self.memory.getAllResources(client, jid_) 731 resources = self.memory.getAvailableResources(client, jid_)
732 except exceptions.UnknownEntityError: 732 except exceptions.UnknownEntityError:
733 continue 733 continue
734 for resource in resources: 734 for resource in resources:
735 full_jid = jid.JID(tuple=(jid_.user, jid_.host, resource)) 735 full_jid = jid.JID(tuple=(jid_.user, jid_.host, resource))
736 if full_jid == client.jid and not local_device: 736 if full_jid == client.jid and not local_device: