This commit is contained in:
parent
aabe6db039
commit
ba8b8bca31
1 changed files with 5 additions and 2 deletions
|
@ -431,9 +431,12 @@ class Contacts:
|
||||||
for data_ in family:
|
for data_ in family:
|
||||||
if data_.has_key('order') and data_['order'] > max_order:
|
if data_.has_key('order') and data_['order'] > max_order:
|
||||||
max_order = data_['order']
|
max_order = data_['order']
|
||||||
contact = self.get_contact_with_highest_priority(account, jid)
|
|
||||||
score = (max_order - order)*10000
|
score = (max_order - order)*10000
|
||||||
|
|
||||||
|
contact = self.get_contact_with_highest_priority(account, jid)
|
||||||
|
if not contact:
|
||||||
|
return score
|
||||||
|
|
||||||
if common.gajim.get_transport_name_from_jid(jid) is None and \
|
if common.gajim.get_transport_name_from_jid(jid) is None and \
|
||||||
contact.show not in ('error', 'offline'):
|
contact.show not in ('error', 'offline'):
|
||||||
score += 10
|
score += 10
|
||||||
|
|
Loading…
Add table
Reference in a new issue