count unread_messages in gc correctly when we have unread pm

This commit is contained in:
Yann Leboulanger 2005-09-23 21:25:20 +00:00
parent 8f93012465
commit 8cc1bd3cea
1 changed files with 11 additions and 11 deletions

View File

@ -481,7 +481,7 @@ class Chat:
if end_rect.y <= (visible_rect.y + visible_rect.height):
#we are at the end
if self.nb_unread[new_jid] > 0:
self.nb_unread[new_jid] = 0
self.nb_unread[new_jid] = 0 + self.get_specific_unread(new_jid)
self.redraw_tab(new_jid)
self.show_title()
if self.plugin.systray_enabled:
@ -836,7 +836,7 @@ class Chat:
if end_rect.y <= (visible_rect.y + visible_rect.height) and \
self.window.is_active():
#we are at the end
self.nb_unread[jid] = 0
self.nb_unread[jid] = 0 + self.get_specific_unread(jid)
self.redraw_tab(jid)
self.show_title()
if self.plugin.systray_enabled: