comparison 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
comparison
equal deleted inserted replaced
1972:02d21a589be2 1973:a9908e751c42
199 199
200 notifs = self.host.getNotifs(entity.bare, profile=self.profile) 200 notifs = self.host.getNotifs(entity.bare, profile=self.profile)
201 if notifs: 201 if notifs:
202 entity_attr = 'cl_notifs' 202 entity_attr = 'cl_notifs'
203 header = u'({}) '.format(len(notifs)) 203 header = u'({}) '.format(len(notifs))
204 if self.host.getNotifs(entity.bare, C.NOTIFY_MENTION, profile=self.profile):
205 header = ('cl_mention', header)
204 else: 206 else:
205 header = u'' 207 header = u''
206 208
207 markup.append((entity_attr, entity_txt)) 209 markup.append((entity_attr, entity_txt))
208 if markup_prepend: 210 if markup_prepend: