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