Commit 772cec28 authored by Madhur Garg's avatar Madhur Garg

Changed the name of MAM function.

parent 788c21b9
......@@ -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
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment