From 47c593ddaf80b95ba48c826d8c2a7e9d95067cbc Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 1 Aug 2012 01:24:42 +0200 Subject: Sort the unavailable contacts at the end of the contact list --- src/roster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3