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