fix roster sorting whith user that just became offline and are still in roster. Fixes #3531

This commit is contained in:
Yann Leboulanger 2008-01-31 20:39:03 +00:00
parent e93d287c5b
commit 7e88b7608a
1 changed files with 10 additions and 0 deletions

View File

@ -4933,6 +4933,16 @@ class RosterWindow:
show2 = cshow[s]
else:
show2 = 9
removing1 = False
removing2 = False
if show1 == 6 and jid1 in gajim.to_be_removed[account1]:
removing1 = True
if show2 == 6 and jid2 in gajim.to_be_removed[account2]:
removing2 = True
if removing1 and not removing2:
return -1
if removing2 and not removing1:
return 1
if show1 < show2:
return -1
elif show1 > show2: