Merge branch 'mam' into 'master'
Removed assigning 'reverse' value to the 'before' tag See merge request poezio/slixmpp!25
This commit is contained in:
commit
2249d878d1
@ -79,7 +79,6 @@ class ResultIterator:
|
|||||||
"""
|
"""
|
||||||
if self._stop:
|
if self._stop:
|
||||||
raise StopAsyncIteration
|
raise StopAsyncIteration
|
||||||
self.query[self.interface]['rsm']['before'] = self.reverse
|
|
||||||
self.query['id'] = self.query.stream.new_id()
|
self.query['id'] = self.query.stream.new_id()
|
||||||
self.query[self.interface]['rsm']['max'] = str(self.amount)
|
self.query[self.interface]['rsm']['max'] = str(self.amount)
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ class XEP_0313(BasePlugin):
|
|||||||
register_stanza_plugin(stanza.MAM, self.xmpp['xep_0059'].stanza.Set)
|
register_stanza_plugin(stanza.MAM, self.xmpp['xep_0059'].stanza.Set)
|
||||||
register_stanza_plugin(stanza.Fin, 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, before=None, with_jid=None, ifrom=None,
|
def retrieve(self, jid=None, start=None, end=None, with_jid=None, ifrom=None,
|
||||||
reverse=False, timeout=None, callback=None, iterator=False, rsm=None):
|
reverse=False, timeout=None, callback=None, iterator=False, rsm=None):
|
||||||
iq = self.xmpp.Iq()
|
iq = self.xmpp.Iq()
|
||||||
query_id = iq['id']
|
query_id = iq['id']
|
||||||
@ -52,7 +52,6 @@ class XEP_0313(BasePlugin):
|
|||||||
iq['mam']['queryid'] = query_id
|
iq['mam']['queryid'] = query_id
|
||||||
iq['mam']['start'] = start
|
iq['mam']['start'] = start
|
||||||
iq['mam']['end'] = end
|
iq['mam']['end'] = end
|
||||||
iq['mam']['rsm']['before'] = before
|
|
||||||
iq['mam']['with'] = with_jid
|
iq['mam']['with'] = with_jid
|
||||||
if rsm:
|
if rsm:
|
||||||
for key, value in rsm.items():
|
for key, value in rsm.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user