show free for chat contacts before online contacts in roster when sorting by status. Fixes #4301

This commit is contained in:
Yann Leboulanger 2008-09-27 14:20:44 +00:00
parent c797a14b8c
commit 5da238ee54
2 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ class GroupchatControl(ChatControlBase):
return 0
if type1 == 'contact' and type2 == 'contact' and \
gajim.config.get('sort_by_show_in_muc'):
cshow = {'online':0, 'chat': 1, 'away': 2, 'xa': 3, 'dnd': 4,
cshow = {'chat':0, 'online': 1, 'away': 2, 'xa': 3, 'dnd': 4,
'invisible': 5, 'offline': 6, 'error': 7}
show1 = cshow[gc_contact1.show]
show2 = cshow[gc_contact2.show]

View File

@ -1565,7 +1565,7 @@ class RosterWindow:
# child contact
if type1 == 'contact' and type2 == 'contact' and \
gajim.config.get('sort_by_show_in_roster'):
cshow = {'online':0, 'chat': 1, 'away': 2, 'xa': 3, 'dnd': 4,
cshow = {'chat':0, 'online': 1, 'away': 2, 'xa': 3, 'dnd': 4,
'invisible': 5, 'offline': 6, 'not in roster': 7, 'error': 8}
s = self.get_show(lcontact1)
if s in cshow: