summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-08-01 01:24:42 +0200
committermathieui <mathieui@mathieui.net>2012-08-01 01:24:42 +0200
commit47c593ddaf80b95ba48c826d8c2a7e9d95067cbc (patch)
tree76f6461b1cc3d1d1984a967c198a5e34f88bdb2f /src
parent71f813af289ff4df6e4721f56c907d78aa609e69 (diff)
downloadpoezio-47c593ddaf80b95ba48c826d8c2a7e9d95067cbc.tar.gz
poezio-47c593ddaf80b95ba48c826d8c2a7e9d95067cbc.tar.bz2
poezio-47c593ddaf80b95ba48c826d8c2a7e9d95067cbc.tar.xz
poezio-47c593ddaf80b95ba48c826d8c2a7e9d95067cbc.zip
Sort the unavailable contacts at the end of the contact list
Diffstat (limited to 'src')
-rw-r--r--src/roster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roster.py b/src/roster.py
index 8d59e345..c7717ea8 100644
--- a/src/roster.py
+++ b/src/roster.py
@@ -243,7 +243,7 @@ def sort_jid(contact):
def sort_show(contact):
res = contact.get_highest_priority_resource()
if not res:
- return 0
+ return 5
show = res.presence
if show not in PRESENCE_PRIORITY:
return 0