diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-13 19:57:43 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-13 19:57:43 +0200 |
commit | 49f055f1b45dbfb4b4f11b14c9953b94df752a4e (patch) | |
tree | 74fce4ef12b7b0551a51ed3ebb8161fdcbc51485 | |
parent | 2d46bfed68cb755d1facdd4605c958814181e1b7 (diff) | |
download | prosody-49f055f1b45dbfb4b4f11b14c9953b94df752a4e.tar.gz prosody-49f055f1b45dbfb4b4f11b14c9953b94df752a4e.zip |
mod_mam: Report correct count of results for forward queries
#results is only correct for backwards queries, the table is unused for
forward queries.
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 2f6ab531..855e1974 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -206,7 +206,7 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) first = first, last = last, count = total })); -- That's all folks! - module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, #results); + module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, complete and count or count - 1); return true; end); |