From e4a6d895eee8e2f3f343289df97202575eeb7506 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Tue, 21 Nov 2006 22:27:35 +0000 Subject: [PATCH] do not count priority and if contact is a transport when computing metacontact score when contact is offline. fixes #2691 --- src/common/contacts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/contacts.py b/src/common/contacts.py index eac033c8c6..29d9faa0f9 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -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 -- GitLab