diff --git a/src/common/contacts.py b/src/common/contacts.py index 2efd5e8d9..b6f8cf084 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -256,7 +256,9 @@ class Contacts: return [] contacts = [] for j in self._children_meta_contacts[account][jid]: - contacts.append(self.get_contact_with_highest_priority(account, j)) + c = self.get_contact_with_highest_priority(account, j) + if c: + contacts.append(c) return contacts def get_parent_contact(self, account, contact):