summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-07-05 13:09:28 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-08-22 00:54:25 +0530
commitcca0a69bdeb2c45b772560904b620e3550ad2bc5 (patch)
tree8d15772e270a667374d2cece725a2132781a6dab /poezio/tabs
parentce21831c978ac946854957b7a8f822330a672a7b (diff)
downloadpoezio-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
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/basetabs.py3
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)