Improved get_contacts_jid_list

This commit is contained in:
Alexander Cherniuk 2010-03-08 18:33:53 +02:00
parent d88c743c86
commit bbe46f2a5c
1 changed files with 2 additions and 5 deletions

View File

@ -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):
"""