Commit 459471d7 authored by louiz’'s avatar louiz’

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

parent 2363e3f1
......@@ -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'):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment