diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-07-24 02:00:04 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-07-24 02:01:10 +0200 |
commit | 459471d7160295259683a6268e7e2e465d4dd2d0 (patch) | |
tree | 6a27adb0c87984948f4fc66ad6c1a5a4cb68f933 /src | |
parent | 2363e3f1bd0d94913d196fd26926cce944749d33 (diff) | |
download | poezio-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
Diffstat (limited to 'src')
-rw-r--r-- | src/contact.py | 2 |
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'): |