From 1a2246947f885e8ed605aa95ed43f46543825979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 18 Aug 2018 15:46:14 +0200 Subject: [PATCH] Fix removing events when scrolled to bottom --- gajim/chat_control_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/chat_control_base.py b/gajim/chat_control_base.py index 3cc119548..acdc0b27a 100644 --- a/gajim/chat_control_base.py +++ b/gajim/chat_control_base.py @@ -1237,7 +1237,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): if not app.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): + elif not app.events.remove_events(types_list): # There were events to remove self.redraw_after_event_removed(jid)