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

contacts.get_contact() now always returns a list (empty if needed) when no...

contacts.get_contact() now always returns a list (empty if needed) when no resource is given. Should fix #1821
parent 3fbe15ed
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,9 @@ class Contacts:
for c in contacts:
if c.resource == resource:
return c
return None
if resource:
return None
return []
def get_contacts_from_jid(self, account, jid):
'''we may have two or more resources on that jid'''
......
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