diff frontends/src/quick_frontend/quick_contact_list.py @ 2016:f09562b0704d

quick_frontend, primitivus: better notifications handling
author Goffi <goffi@goffi.org>
date Sun, 24 Jul 2016 17:56:14 +0200
parents 20fb71b656e3
children 7aa58b7a47e2
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py	Sun Jul 24 17:47:09 2016 +0200
+++ b/frontends/src/quick_frontend/quick_contact_list.py	Sun Jul 24 17:56:14 2016 +0200
@@ -384,7 +384,7 @@
         return ((show is not None and show != C.PRESENCE_UNAVAILABLE)
                 or self.show_disconnected
                 or entity in selected
-                or self.host.getNotifs(entity.bare, profile=self.profile)
+                or next(self.host.getNotifs(entity.bare, profile=self.profile), None)
                 )
 
     def anyEntityToShow(self, entities, check_resources=False):