The most important resource of a bare jid is the one with the highest priority

This commit is contained in:
Florent Le Coz 2014-07-24 02:00:04 +02:00
parent 2363e3f1bd
commit 459471d716

View file

@ -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'):