From cd8316aa9ec2da32ae7eeab6caea53475189faea Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 21 May 2007 19:43:33 +0000 Subject: [PATCH] Do not count gc messages in tabs if notify_on_all_muc_messages is false. --- src/groupchat_control.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 2132db2d3..590e23dc4 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -409,13 +409,14 @@ class GroupchatControl(ChatControlBase): label_str = self.name # count waiting highlighted messages - unread = '' - num_unread = self.get_nb_unread() - if num_unread == 1: - unread = '*' - elif num_unread > 1: - unread = '[' + unicode(num_unread) + ']' - label_str = unread + label_str + if gajim.config.get('notify_on_all_muc_messages'): + unread = '' + num_unread = self.get_nb_unread() + if num_unread == 1: + unread = '*' + elif num_unread > 1: + unread = '[' + unicode(num_unread) + ']' + label_str = unread + label_str return (label_str, color) def get_tab_image(self):