From a592baf4381e249d00cd6471a4566775ee367ac4 Mon Sep 17 00:00:00 2001 From: Madhur Garg Date: Tue, 9 Jul 2019 14:36:50 +0530 Subject: Fixed window refresh --- poezio/mam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/mam.py b/poezio/mam.py index 7d34901e..7600f137 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -54,6 +54,7 @@ async def query(self, remote_jid, start, end, top): if msg_count == 10: timestamp = datetime.now() add_line(text_buffer, 'End of MAM query: ', timestamp, 'MAM', top) + self.core.refresh_window() return msg_count += 1 msgs.reverse() @@ -63,7 +64,6 @@ async def query(self, remote_jid, start, end, top): message = forwarded['stanza'] add_line(text_buffer, message['body'], timestamp, str(message['from']), top) self.text_win.scroll_up(len(self.text_win.built_lines)) - self.core.refresh_window() else: for msg in rsm['mam']['results']: forwarded = msg['mam_result']['forwarded'] -- cgit v1.2.3