summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2019-08-23 16:37:12 +0200
committerMaxime Buquet <pep@bouah.net>2019-08-23 16:37:12 +0200
commit540ff894275023da343d8c7565ee46d6e41ccbfc (patch)
treeca0537783e31704d6f2c391b6d90d786862fb295
parent2249d878d1f9786cd86a859baad27261d1351ded (diff)
parentdd8ac8fc876125bf913d0c62371e2b2c03cfa047 (diff)
downloadslixmpp-540ff894275023da343d8c7565ee46d6e41ccbfc.tar.gz
slixmpp-540ff894275023da343d8c7565ee46d6e41ccbfc.tar.bz2
slixmpp-540ff894275023da343d8c7565ee46d6e41ccbfc.tar.xz
slixmpp-540ff894275023da343d8c7565ee46d6e41ccbfc.zip
Merge branch 'mam' into 'master'
Assign 'True' to 'before' tag if it's value is 'None'. See merge request poezio/slixmpp!26
-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)