From b8c7e16739c97b7c83df7918b92b199f0b3137e0 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Aug 2019 00:05:39 +0530 Subject: Disabled the history on /reconnect, if the tab is still present and has messages in it. --- poezio/core/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'poezio/core') diff --git a/poezio/core/core.py b/poezio/core/core.py index b8855efe..74041429 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -2008,8 +2008,10 @@ class Core: nick, passwd=bm.password, status=self.status.message, - show=self.status.show) - mam.mam_scroll(tab, action='query') + show=self.status.show, + tab=tab) + if tab._text_buffer.last_message is None: + mam.mam_scroll(tab, action='query') def check_bookmark_storage(self, features): private = 'jabber:iq:private' in features -- cgit v1.2.3