diff options
author | Madhur Garg <madhurgarg96@gmail.com> | 2019-08-23 04:34:29 +0530 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-08-23 09:51:04 +0200 |
commit | b112748d1fdf097ae1a374264d5012bb564c62fd (patch) | |
tree | 3ea32cf1c9b7dbb5abfe0b11d7ec7ff802406945 | |
parent | 65c7deb5858153327a04630f43bfca4ebea557a1 (diff) | |
download | poezio-b112748d1fdf097ae1a374264d5012bb564c62fd.tar.gz poezio-b112748d1fdf097ae1a374264d5012bb564c62fd.tar.bz2 poezio-b112748d1fdf097ae1a374264d5012bb564c62fd.tar.xz poezio-b112748d1fdf097ae1a374264d5012bb564c62fd.zip |
Changed the value of the 'reverse' parameter back to boolean.
-rw-r--r-- | poezio/mam.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/mam.py b/poezio/mam.py index 25f56678..2dfa251d 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -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) |