Changed the value of the 'reverse' parameter back to boolean.

This commit is contained in:
Madhur Garg 2019-08-23 04:34:29 +05:30 committed by Maxime “pep” Buquet
parent 65c7deb585
commit b112748d1f

View file

@ -75,7 +75,7 @@ async def query(tab, remote_jid, top, start=None, end=None, before=None):
try:
if before is not None:
results = tab.core.xmpp['xep_0313'].retrieve(jid=remote_jid,
iterator=True, reverse=before, rsm={'before':before})
iterator=True, reverse=top, rsm={'before':before})
else:
results = tab.core.xmpp['xep_0313'].retrieve(jid=remote_jid,
iterator=True, reverse=top, end=end)
@ -85,7 +85,7 @@ async def query(tab, remote_jid, top, start=None, end=None, before=None):
try:
if before is not None:
results = tab.core.xmpp['xep_0313'].retrieve(with_jid=remote_jid,
iterator=True, reverse=before, rsm={'before':before})
iterator=True, reverse=top, rsm={'before':before})
else:
results = tab.core.xmpp['xep_0313'].retrieve(with_jid=remote_jid,
iterator=True, reverse=top, end=end)