diff options
author | Madhur Garg <madhurgarg96@gmail.com> | 2019-07-09 14:36:50 +0530 |
---|---|---|
committer | Madhur Garg <madhurgarg96@gmail.com> | 2019-08-22 00:54:25 +0530 |
commit | a592baf4381e249d00cd6471a4566775ee367ac4 (patch) | |
tree | 0f13861d4e49ae5cd473aff7e3db38fa82e7039d | |
parent | 6bd012e1292d78165f281b141fd7f755e239f0c1 (diff) | |
download | poezio-a592baf4381e249d00cd6471a4566775ee367ac4.tar.gz poezio-a592baf4381e249d00cd6471a4566775ee367ac4.tar.bz2 poezio-a592baf4381e249d00cd6471a4566775ee367ac4.tar.xz poezio-a592baf4381e249d00cd6471a4566775ee367ac4.zip |
Fixed window refresh
-rw-r--r-- | poezio/mam.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'] |