count unread_messages in gc correctly when we have unread pm
This commit is contained in:
parent
8f93012465
commit
8cc1bd3cea
|
@ -481,7 +481,7 @@ class Chat:
|
||||||
if end_rect.y <= (visible_rect.y + visible_rect.height):
|
if end_rect.y <= (visible_rect.y + visible_rect.height):
|
||||||
#we are at the end
|
#we are at the end
|
||||||
if self.nb_unread[new_jid] > 0:
|
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.redraw_tab(new_jid)
|
||||||
self.show_title()
|
self.show_title()
|
||||||
if self.plugin.systray_enabled:
|
if self.plugin.systray_enabled:
|
||||||
|
@ -836,7 +836,7 @@ class Chat:
|
||||||
if end_rect.y <= (visible_rect.y + visible_rect.height) and \
|
if end_rect.y <= (visible_rect.y + visible_rect.height) and \
|
||||||
self.window.is_active():
|
self.window.is_active():
|
||||||
#we are at the end
|
#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.redraw_tab(jid)
|
||||||
self.show_title()
|
self.show_title()
|
||||||
if self.plugin.systray_enabled:
|
if self.plugin.systray_enabled:
|
||||||
|
|
Loading…
Reference in New Issue