From dd8ac8fc876125bf913d0c62371e2b2c03cfa047 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Aug 2019 04:25:16 +0530 Subject: 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) --- slixmpp/plugins/xep_0059/rsm.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'slixmpp') 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) -- cgit v1.2.3