Changed the value of the 'reverse' parameter back to boolean.
This commit is contained in:
parent
65c7deb585
commit
b112748d1f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue