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

Fix TB when getting score of a not (yet) in the roster contact. fixes #3382 and #3335

parent aabe6db0
No related branches found
No related tags found
No related merge requests found
......@@ -431,9 +431,12 @@ class Contacts:
for data_ in family:
if data_.has_key('order') and data_['order'] > max_order:
max_order = data_['order']
contact = self.get_contact_with_highest_priority(account, jid)
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 \
contact.show not in ('error', 'offline'):
score += 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