mark groupchat messages as read when we scroll at the end in groupchat window
This commit is contained in:
parent
a2d6d25324
commit
0e11e16bc2
1 changed files with 5 additions and 1 deletions
|
@ -1022,7 +1022,11 @@ class ChatControlBase(MessageControl):
|
||||||
self.parent_win.get_active_control() == self and \
|
self.parent_win.get_active_control() == self and \
|
||||||
self.parent_win.window.is_active():
|
self.parent_win.window.is_active():
|
||||||
# we are at the end
|
# 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
|
# There were events to remove
|
||||||
self.redraw_after_event_removed(jid)
|
self.redraw_after_event_removed(jid)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue