aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-10 00:14:34 +0200
committerKim Alvefur <zash@zash.se>2018-06-10 00:14:34 +0200
commit03a94333a63c22e8d5b9d9c16620152ef54d2187 (patch)
tree6ee546aefc7ab9795c4117b536012bc5f559779d /plugins/mod_mam/mod_mam.lua
parent0c38ebb0cfcc7d4e1480bdd47b4b1affe633ff92 (diff)
downloadprosody-03a94333a63c22e8d5b9d9c16620152ef54d2187.tar.gz
prosody-03a94333a63c22e8d5b9d9c16620152ef54d2187.zip
mod_mam: Add coment on how 'complete' works
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 29d4ff7b..2874ac23 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -168,6 +168,8 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event)
for id, item, when in data do
count = count + 1;
if count > qmax then
+ -- We requested qmax+1 items. If that many items are retrieved then
+ -- there are more results to page through, so:
complete = nil;
break;
end