Merge branch 'mam' into 'master'

Assign 'True' to 'before' tag if it's value is 'None'.

See merge request poezio/slixmpp!26
This commit is contained in:
Maxime Buquet 2019-08-23 16:37:12 +02:00
commit 540ff89427

View file

@ -79,6 +79,8 @@ class ResultIterator:
""" """
if self._stop: if self._stop:
raise StopAsyncIteration raise StopAsyncIteration
if self.query[self.interface]['rsm']['before'] is None:
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)