The most important resource of a bare jid is the one with the highest priority
This commit is contained in:
parent
2363e3f1bd
commit
459471d716
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class Contact(object):
|
|||
"""Return the resource with the highest priority"""
|
||||
resources = self.get_resources()
|
||||
if resources:
|
||||
return resources[-1]
|
||||
return resources[0]
|
||||
return None
|
||||
|
||||
def folded(self, group_name='none'):
|
||||
|
|
Loading…
Reference in a new issue