diff frontends/src/primitivus/contact_list.py @ 1973:a9908e751c42

quick_frontend, primitivus (chat): mention detection in group chat + notification (mention and messages)
author Goffi <goffi@goffi.org>
date Mon, 27 Jun 2016 22:37:51 +0200
parents 02d21a589be2
children 90134b2e3dc4
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py	Mon Jun 27 22:36:22 2016 +0200
+++ b/frontends/src/primitivus/contact_list.py	Mon Jun 27 22:37:51 2016 +0200
@@ -201,6 +201,8 @@
         if notifs:
             entity_attr = 'cl_notifs'
             header = u'({}) '.format(len(notifs))
+            if self.host.getNotifs(entity.bare, C.NOTIFY_MENTION, profile=self.profile):
+                header = ('cl_mention', header)
         else:
             header = u''