summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0059/rsm.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0059/rsm.py')
-rw-r--r--slixmpp/plugins/xep_0059/rsm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0059/rsm.py b/slixmpp/plugins/xep_0059/rsm.py
index 00241cbb..2bc68138 100644
--- a/slixmpp/plugins/xep_0059/rsm.py
+++ b/slixmpp/plugins/xep_0059/rsm.py
@@ -79,6 +79,8 @@ class ResultIterator:
"""
if self._stop:
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[self.interface]['rsm']['max'] = str(self.amount)