diff options
-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) |