mark groupchat messages as read when we scroll at the end in groupchat window

This commit is contained in:
Yann Leboulanger 2009-06-04 21:45:46 +02:00
parent a2d6d25324
commit 0e11e16bc2

View file

@ -1022,7 +1022,11 @@ class ChatControlBase(MessageControl):
self.parent_win.get_active_control() == self and \
self.parent_win.window.is_active():
# we are at the end
if self.session and self.session.remove_events(types_list):
if self.type_id == message_control.TYPE_GC:
if not gajim.events.remove_events(self.account, jid,
types=types_list):
self.redraw_after_event_removed(jid)
elif self.session and self.session.remove_events(types_list):
# There were events to remove
self.redraw_after_event_removed(jid)