diff options
author | louiz’ <louiz@louiz.org> | 2019-08-13 09:54:43 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2019-08-13 09:54:43 +0200 |
commit | d618f55dea4d3b421373ec24782ebfdbd75ef223 (patch) | |
tree | ba33022520786a7dfa9841187f95cf6669fd7e5d | |
parent | 0e7176483bfecc6b1f98b6cd736459653d39f115 (diff) | |
parent | b0e688eb35681373514c5e991dac751a2e4fd239 (diff) | |
download | slixmpp-d618f55dea4d3b421373ec24782ebfdbd75ef223.tar.gz slixmpp-d618f55dea4d3b421373ec24782ebfdbd75ef223.tar.bz2 slixmpp-d618f55dea4d3b421373ec24782ebfdbd75ef223.tar.xz slixmpp-d618f55dea4d3b421373ec24782ebfdbd75ef223.zip |
Merge branch 'mam' into 'master'
Added <before> tag for querying messages before a stanza-id.
See merge request poezio/slixmpp!23
-rw-r--r-- | slixmpp/plugins/xep_0313/mam.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0313/mam.py b/slixmpp/plugins/xep_0313/mam.py index f78b62fa..8abd6b7e 100644 --- a/slixmpp/plugins/xep_0313/mam.py +++ b/slixmpp/plugins/xep_0313/mam.py @@ -41,7 +41,7 @@ class XEP_0313(BasePlugin): register_stanza_plugin(stanza.MAM, self.xmpp['xep_0059'].stanza.Set) 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, + def retrieve(self, jid=None, start=None, end=None, before=None, with_jid=None, ifrom=None, reverse=False, timeout=None, callback=None, iterator=False, rsm=None): iq = self.xmpp.Iq() query_id = iq['id'] @@ -52,6 +52,7 @@ class XEP_0313(BasePlugin): iq['mam']['queryid'] = query_id iq['mam']['start'] = start iq['mam']['end'] = end + iq['mam']['rsm']['before'] = before iq['mam']['with'] = with_jid if rsm: for key, value in rsm.items(): |