From bbe46f2a5c1df1f0ba6816032e97dc6afd577c65 Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Mon, 8 Mar 2010 18:33:53 +0200 Subject: [PATCH] Improved get_contacts_jid_list --- src/common/contacts.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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): """