From 459471d7160295259683a6268e7e2e465d4dd2d0 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 24 Jul 2014 02:00:04 +0200 Subject: The most important resource of a bare jid is the one with the highest priority --- src/contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'): -- cgit v1.2.3