contact.show can be not in roster. Fixes #1792
This commit is contained in:
parent
bd4a18b861
commit
117acf702c
1 changed files with 2 additions and 2 deletions
|
@ -316,8 +316,8 @@ class Contacts:
|
||||||
score = priority*10000
|
score = priority*10000
|
||||||
if not common.gajim.jid_is_transport(jid):
|
if not common.gajim.jid_is_transport(jid):
|
||||||
score += contact.priority*10
|
score += contact.priority*10
|
||||||
score += ['error', 'offline', 'invisible', 'dnd', 'xa', 'away', 'chat',
|
score += ['not in roster', 'error', 'offline', 'invisible', 'dnd', 'xa',
|
||||||
'online'].index(contact.show)
|
'away', 'chat', 'online'].index(contact.show)
|
||||||
return score
|
return score
|
||||||
|
|
||||||
def get_metacontacts_big_brother(self, family):
|
def get_metacontacts_big_brother(self, family):
|
||||||
|
|
Loading…
Add table
Reference in a new issue