diff options
author | Madhur Garg <madhurgarg96@gmail.com> | 2019-07-08 12:58:31 +0530 |
---|---|---|
committer | Madhur Garg <madhurgarg96@gmail.com> | 2019-08-22 00:54:25 +0530 |
commit | 772cec28fbe665599a7c74d5a4934f3c1eefb495 (patch) | |
tree | e644348c67544dd26cbda40730f0d880abd61cf2 | |
parent | 788c21b9867642b752fec85f0e17c248cc9fa008 (diff) | |
download | poezio-772cec28fbe665599a7c74d5a4934f3c1eefb495.tar.gz poezio-772cec28fbe665599a7c74d5a4934f3c1eefb495.tar.bz2 poezio-772cec28fbe665599a7c74d5a4934f3c1eefb495.tar.xz poezio-772cec28fbe665599a7c74d5a4934f3c1eefb495.zip |
Changed the name of MAM function.
-rw-r--r-- | poezio/mam.py | 4 | ||||
-rw-r--r-- | poezio/tabs/basetabs.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/poezio/mam.py b/poezio/mam.py index 52c07ee9..981c20e9 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -33,7 +33,7 @@ def add_line(text_buffer: TextBuffer, text: str, str_time: str, nick: str, top: None, # Jid ) -async def MAM(self, remote_jid, start, end, top): +async def query(self, remote_jid, start, end, top): self.remote_jid = remote_jid self.start_date = start self.end_date = end @@ -80,4 +80,4 @@ def mam_scroll(self): start = start + timedelta(days=-10) start = datetime.strftime(start, '%Y-%m-%dT%H:%M:%SZ') top = True - asyncio.ensure_future(MAM(self, remote_jid, start, end, top))
\ No newline at end of file + asyncio.ensure_future(query(self, remote_jid, start, end, top))
\ No newline at end of file diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 3116cfaf..4c172d93 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -951,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, top)) + asyncio.ensure_future(mam.query(self, remote_jid, start, end, top)) def on_line_up(self): return self.text_win.scroll_up(1) |