diff --git a/src/common/contacts.py b/src/common/contacts.py index edd9c22e3..592c34d41 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -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): """