Philipp Hörist pushed to branch master at gajim / gajim
Commits: dfb7b4a0 by Philipp Hörist at 2018-08-18T13:56:23Z Simplify removing events on scroll to bottom
- - - - -
1 changed file:
- gajim/chat_control_base.py
Changes:
===================================== gajim/chat_control_base.py ===================================== --- a/gajim/chat_control_base.py +++ b/gajim/chat_control_base.py @@ -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)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/dfb7b4a0ddceb4522917b22e4897116a36a...