show free for chat contacts before online contacts in roster when sorting by status. Fixes #4301
This commit is contained in:
parent
c797a14b8c
commit
5da238ee54
2 changed files with 2 additions and 2 deletions
|
@ -403,7 +403,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
return 0
|
return 0
|
||||||
if type1 == 'contact' and type2 == 'contact' and \
|
if type1 == 'contact' and type2 == 'contact' and \
|
||||||
gajim.config.get('sort_by_show_in_muc'):
|
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}
|
'invisible': 5, 'offline': 6, 'error': 7}
|
||||||
show1 = cshow[gc_contact1.show]
|
show1 = cshow[gc_contact1.show]
|
||||||
show2 = cshow[gc_contact2.show]
|
show2 = cshow[gc_contact2.show]
|
||||||
|
|
|
@ -1565,7 +1565,7 @@ class RosterWindow:
|
||||||
# child contact
|
# child contact
|
||||||
if type1 == 'contact' and type2 == 'contact' and \
|
if type1 == 'contact' and type2 == 'contact' and \
|
||||||
gajim.config.get('sort_by_show_in_roster'):
|
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}
|
'invisible': 5, 'offline': 6, 'not in roster': 7, 'error': 8}
|
||||||
s = self.get_show(lcontact1)
|
s = self.get_show(lcontact1)
|
||||||
if s in cshow:
|
if s in cshow:
|
||||||
|
|
Loading…
Add table
Reference in a new issue