Assign True to the 'before' tag if it's value is None (eg:at the start no msg is there in the group, so no stanza-id)
This commit is contained in:
parent
2249d878d1
commit
dd8ac8fc87
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue