summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-24 02:00:04 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-24 02:01:10 +0200
commit459471d7160295259683a6268e7e2e465d4dd2d0 (patch)
tree6a27adb0c87984948f4fc66ad6c1a5a4cb68f933
parent2363e3f1bd0d94913d196fd26926cce944749d33 (diff)
downloadpoezio-459471d7160295259683a6268e7e2e465d4dd2d0.tar.gz
poezio-459471d7160295259683a6268e7e2e465d4dd2d0.tar.bz2
poezio-459471d7160295259683a6268e7e2e465d4dd2d0.tar.xz
poezio-459471d7160295259683a6268e7e2e465d4dd2d0.zip
The most important resource of a bare jid is the one with the highest priority
-rw-r--r--src/contact.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contact.py b/src/contact.py
index 4cb4c789..908b609e 100644
--- a/src/contact.py
+++ b/src/contact.py
@@ -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'):