do not count priority and if contact is a transport when computing metacontact score when contact is offline. fixes #2691
This commit is contained in:
parent
4236845608
commit
e4a6d895ee
1 changed files with 2 additions and 1 deletions
|
@ -392,7 +392,8 @@ class Contacts:
|
||||||
contact = self.get_contact_with_highest_priority(account, jid)
|
contact = self.get_contact_with_highest_priority(account, jid)
|
||||||
score = (max_order - order)*10000
|
score = (max_order - order)*10000
|
||||||
|
|
||||||
if common.gajim.get_transport_name_from_jid(jid) is None:
|
if common.gajim.get_transport_name_from_jid(jid) is None and \
|
||||||
|
contact.show not in ('error', 'offline'):
|
||||||
score += 10
|
score += 10
|
||||||
if contact.priority > 0:
|
if contact.priority > 0:
|
||||||
score += contact.priority * 10
|
score += contact.priority * 10
|
||||||
|
|
Loading…
Add table
Reference in a new issue