Commit c3a723a8 authored by Yann Leboulanger's avatar Yann Leboulanger

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

parent 6f39fecd
......@@ -922,7 +922,11 @@ def on_conversation_vadjustment_value_changed(self, adjustment):
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment