summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-07-03 10:31:18 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-07-03 10:31:18 +0530
commitdbc9758311097c501c25b8e46b7c822957b47d55 (patch)
tree2453f4681c7f52f29fd608e25e1c11ba22023a65
parent47968963b1819341563dbf39c782a69a00bf1644 (diff)
downloadslixmpp-dbc9758311097c501c25b8e46b7c822957b47d55.tar.gz
slixmpp-dbc9758311097c501c25b8e46b7c822957b47d55.tar.bz2
slixmpp-dbc9758311097c501c25b8e46b7c822957b47d55.tar.xz
slixmpp-dbc9758311097c501c25b8e46b7c822957b47d55.zip
Added 'reverse' parameter in mam and rsm plugins
-rw-r--r--slixmpp/plugins/xep_0059/rsm.py2
-rw-r--r--slixmpp/plugins/xep_0313/mam.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0059/rsm.py b/slixmpp/plugins/xep_0059/rsm.py
index a8eeea60..31278c2f 100644
--- a/slixmpp/plugins/xep_0059/rsm.py
+++ b/slixmpp/plugins/xep_0059/rsm.py
@@ -169,6 +169,6 @@ class XEP_0059(BasePlugin):
results -- The name of the interface containing the
query results (typically just 'substanzas').
"""
- return ResultIterator(stanza, interface, results,
+ return ResultIterator(stanza, interface, results, reverse=reverse,
recv_interface=recv_interface, pre_cb=pre_cb,
post_cb=post_cb)
diff --git a/slixmpp/plugins/xep_0313/mam.py b/slixmpp/plugins/xep_0313/mam.py
index 3f543c23..c9d8d4b9 100644
--- a/slixmpp/plugins/xep_0313/mam.py
+++ b/slixmpp/plugins/xep_0313/mam.py
@@ -3,7 +3,7 @@
Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
This file is part of Slixmpp.
- See the file LICENSE for copying permissio
+ See the file LICENSE for copying permission
"""
import logging
@@ -42,7 +42,7 @@ class XEP_0313(BasePlugin):
register_stanza_plugin(stanza.Fin, self.xmpp['xep_0059'].stanza.Set)
def retrieve(self, jid=None, start=None, end=None, with_jid=None, ifrom=None,
- timeout=None, callback=None, iterator=False, rsm=None):
+ reverse=False, timeout=None, callback=None, iterator=False, rsm=None):
iq = self.xmpp.Iq()
query_id = iq['id']
@@ -72,7 +72,7 @@ class XEP_0313(BasePlugin):
result['mam']['results'] = results
if iterator:
- return self.xmpp['xep_0059'].iterate(iq, 'mam', 'results',
+ return self.xmpp['xep_0059'].iterate(iq, 'mam', 'results', reverse=reverse,
recv_interface='mam_fin',
pre_cb=pre_cb, post_cb=post_cb)