Skip to content
Snippets Groups Projects
Commit e4a6d895 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

do not count priority and if contact is a transport when computing metacontact...

do not count priority and if contact is a transport when computing metacontact score when contact is offline. fixes #2691
parent 42368456
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,8 @@ class Contacts:
contact = self.get_contact_with_highest_priority(account, jid)
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
if contact.priority > 0:
score += contact.priority * 10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment