Mercurial > libervia-backend
changeset 1231:93a5e2673929
primitivus: fixes displaying online contacts when "Show offline contacts" is False
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 07 Oct 2014 11:45:34 +0200 |
parents | 3abc6563a0d2 |
children | 6b10442e8920 |
files | frontends/src/primitivus/contact_list.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py Mon Oct 06 13:54:41 2014 +0200 +++ b/frontends/src/primitivus/contact_list.py Tue Oct 07 11:45:34 2014 +0200 @@ -232,7 +232,9 @@ @param contact (str): JID userhost of the contact @return: True if that contact should be showed in the list""" - return self.getCache(JID(contact), 'show') != "unavailable" or self.show_disconnected or contact in self.alert_jid or contact == self.selected + show = self.getCache(JID(contact), 'show') + return (show is not None and show != "unavailable") or \ + self.show_disconnected or contact in self.alert_jid or contact == self.selected def nonEmptyGroup(self, contacts): """Tell if a contact group contains some contacts to show.