summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0059/rsm.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-09 21:20:14 +0100
committermathieui <mathieui@mathieui.net>2021-03-09 21:20:14 +0100
commit7c86c43fc74dd4786ff741386484b58d1c396e8b (patch)
tree3f6be757fedc9cd515b635643a50e9afd8b20b77 /slixmpp/plugins/xep_0059/rsm.py
parent8a1f9bec561466008553e3d2e67ad9391f519a0c (diff)
parent0115feaa31ef998b59da98c99c523ad34ed92651 (diff)
downloadslixmpp-7c86c43fc74dd4786ff741386484b58d1c396e8b.tar.gz
slixmpp-7c86c43fc74dd4786ff741386484b58d1c396e8b.tar.bz2
slixmpp-7c86c43fc74dd4786ff741386484b58d1c396e8b.tar.xz
slixmpp-7c86c43fc74dd4786ff741386484b58d1c396e8b.zip
Merge branch 'mam-update' into 'master'
MAM Update See merge request poezio/slixmpp!149
Diffstat (limited to 'slixmpp/plugins/xep_0059/rsm.py')
-rw-r--r--slixmpp/plugins/xep_0059/rsm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0059/rsm.py b/slixmpp/plugins/xep_0059/rsm.py
index 61752af4..085ee474 100644
--- a/slixmpp/plugins/xep_0059/rsm.py
+++ b/slixmpp/plugins/xep_0059/rsm.py
@@ -135,6 +135,9 @@ class ResultIterator(AsyncIterator):
not r[self.recv_interface]['rsm']['last']:
raise StopAsyncIteration
+ if self.post_cb:
+ self.post_cb(r)
+
if r[self.recv_interface]['rsm']['count'] and \
r[self.recv_interface]['rsm']['first_index']:
count = int(r[self.recv_interface]['rsm']['count'])
@@ -147,9 +150,6 @@ class ResultIterator(AsyncIterator):
self.start = r[self.recv_interface]['rsm']['first']
else:
self.start = r[self.recv_interface]['rsm']['last']
-
- if self.post_cb:
- self.post_cb(r)
return r
except XMPPError:
raise StopAsyncIteration