Improved get_contacts_jid_list
This commit is contained in:
parent
d88c743c86
commit
bbe46f2a5c
|
@ -496,11 +496,8 @@ class Contacts():
|
||||||
return self._contacts.keys()
|
return self._contacts.keys()
|
||||||
|
|
||||||
def get_contacts_jid_list(self):
|
def get_contacts_jid_list(self):
|
||||||
contacts = self._contacts.keys()
|
return [jid for jid, contact in self._contacts.iteritems() if not
|
||||||
for jid in self._contacts.keys():
|
contact[0].is_groupchat()]
|
||||||
if self._contacts[jid][0].is_groupchat():
|
|
||||||
contacts.remove(jid)
|
|
||||||
return contacts
|
|
||||||
|
|
||||||
def get_contact_from_full_jid(self, fjid):
|
def get_contact_from_full_jid(self, fjid):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue