Simplify removing events on scroll to bottom

This commit is contained in:
Philipp Hörist 2018-08-18 15:56:23 +02:00
parent bd8486f822
commit dfb7b4a0dd
1 changed files with 1 additions and 5 deletions

View File

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