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

prevent to return None in get_children_contacts

parent ce99ea66
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
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