Missed name change of start_date to start.

This commit is contained in:
Madhur Garg 2019-08-22 04:52:57 +05:30
parent 4d57a1faf9
commit 9470f4943b

View file

@ -95,13 +95,13 @@ async def query(tab, remote_jid, top, start=None, end=None, before=None):
if 'conference' in list(iq['disco_info']['identities'])[0]:
try:
results = tab.core.xmpp['xep_0313'].retrieve(jid=remote_jid,
iterator=True, reverse=top, start=start_date, end=end)
iterator=True, reverse=top, start=start, end=end)
except (IqError, IqTimeout):
return tab.core.information('Failed to retrieve messages', 'Error')
else:
try:
results = tab.core.xmpp['xep_0313'].retrieve(with_jid=remote_jid,
iterator=True, reverse=top, start=start_date, end=end)
iterator=True, reverse=top, start=start, end=end)
except (IqError, IqTimeout):
return tab.core.information('Failed to retrieve messages', 'Error')
msg_count = 0