mod_mam: Add coment on how 'complete' works

This commit is contained in:
Kim Alvefur 2018-06-10 00:14:34 +02:00
parent 48a65eed67
commit b7fc41affc

View file

@ -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