diff options
author | Madhur Garg <madhurgarg96@gmail.com> | 2019-07-05 13:09:28 +0530 |
---|---|---|
committer | Madhur Garg <madhurgarg96@gmail.com> | 2019-08-22 00:54:25 +0530 |
commit | cca0a69bdeb2c45b772560904b620e3550ad2bc5 (patch) | |
tree | 8d15772e270a667374d2cece725a2132781a6dab | |
parent | ce21831c978ac946854957b7a8f822330a672a7b (diff) | |
download | poezio-cca0a69bdeb2c45b772560904b620e3550ad2bc5.tar.gz poezio-cca0a69bdeb2c45b772560904b620e3550ad2bc5.tar.bz2 poezio-cca0a69bdeb2c45b772560904b620e3550ad2bc5.tar.xz poezio-cca0a69bdeb2c45b772560904b620e3550ad2bc5.zip |
Added argument to add messages at the bottom for mam command
-rw-r--r-- | poezio/tabs/basetabs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 3921e45c..3116cfaf 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -933,6 +933,7 @@ class ChatTab(Tab): """ remote_jid = self.jid + top = False end = datetime.now() end = datetime.strftime(end, '%Y-%m-%dT%H:%M:%SZ') start = datetime.strptime(end, '%Y-%m-%dT%H:%M:%SZ') @@ -950,7 +951,7 @@ class ChatTab(Tab): except ValueError: self.core.information("Please enter a valid JID in [dd:mm:yyyy] format.", "Error") - asyncio.ensure_future(mam.MAM(self, remote_jid, start, end)) + asyncio.ensure_future(mam.MAM(self, remote_jid, start, end, top)) def on_line_up(self): return self.text_win.scroll_up(1) |