Commit b112748d authored by Madhur Garg's avatar Madhur Garg Committed by Maxime Buquet

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

parent 65c7deb5
......@@ -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)
......
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