Improve [8168]: correct window title and print number of marked messages

in tabs.
This commit is contained in:
Julien Pivotto 2007-05-21 21:33:48 +00:00
parent cd8316aa9e
commit 05542130fa

View file

@ -409,7 +409,6 @@ class GroupchatControl(ChatControlBase):
label_str = self.name label_str = self.name
# count waiting highlighted messages # count waiting highlighted messages
if gajim.config.get('notify_on_all_muc_messages'):
unread = '' unread = ''
num_unread = self.get_nb_unread() num_unread = self.get_nb_unread()
if num_unread == 1: if num_unread == 1:
@ -671,7 +670,10 @@ class GroupchatControl(ChatControlBase):
def get_nb_unread(self): def get_nb_unread(self):
nb = len(gajim.events.get_events(self.account, self.room_jid, nb = len(gajim.events.get_events(self.account, self.room_jid,
['printed_gc_msg', 'printed_marked_gc_msg'])) ['printed_marked_gc_msg']))
if gajim.config.get('notify_on_all_muc_messages'):
nb += len(gajim.events.get_events(self.account, self.room_jid,
['printed_gc_msg']))
nb += self.get_nb_unread_pm() nb += self.get_nb_unread_pm()
return nb return nb