show * in gc tab when one message
This commit is contained in:
parent
683c3145e0
commit
d55e56f0b9
|
@ -397,7 +397,9 @@ class GroupchatControl(ChatControlBase):
|
||||||
jid = self.contact.jid
|
jid = self.contact.jid
|
||||||
num_unread = len(gajim.events.get_events(self.account, jid,
|
num_unread = len(gajim.events.get_events(self.account, jid,
|
||||||
['printed_gc_msg']))
|
['printed_gc_msg']))
|
||||||
if num_unread > 1:
|
if num_unread == 1:
|
||||||
|
unread = '*'
|
||||||
|
elif num_unread > 1:
|
||||||
unread = '[' + unicode(num_unread) + ']'
|
unread = '[' + unicode(num_unread) + ']'
|
||||||
label_str = unread + label_str
|
label_str = unread + label_str
|
||||||
return (label_str, color)
|
return (label_str, color)
|
||||||
|
|
Loading…
Reference in New Issue