Commit dfb7b4a0 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Simplify removing events on scroll to bottom

parent bd8486f8
...@@ -1233,11 +1233,7 @@ def _on_edge_reached(self, scrolledwindow, pos): ...@@ -1233,11 +1233,7 @@ def _on_edge_reached(self, scrolledwindow, pos):
if self.parent_win.get_active_control() == self and \ if 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.type_id == message_control.TYPE_GC: if not app.events.remove_events(
if not app.events.remove_events(self.account, jid,
types=types_list):
self.redraw_after_event_removed(jid)
elif not app.events.remove_events(
self.account, jid, types=types_list): self.account, jid, types=types_list):
# There were events to remove # There were events to remove
self.redraw_after_event_removed(jid) 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