# HG changeset patch # User Kim Alvefur # Date 1365709143 -7200 # Node ID ce8bb0386d082ea391484d3b1e9ec6f9f0fb2912 # Parent 020b5944a9738c43ff359d26f02e25737d50e231 mod_mam: Report the total number of messages, not how many messages were sent during the query diff -r 020b5944a973 -r ce8bb0386d08 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Mon Apr 08 23:38:06 2013 +0200 +++ b/mod_mam/mod_mam.lua Thu Apr 11 21:39:03 2013 +0200 @@ -236,7 +236,7 @@ local reply = st.reply(stanza); if last then -- This is a bit redundant, isn't it? - reply:query(xmlns_mam):add_child(rsm.generate{first = (reverse and last or first), last = (reverse and first or last), count = n}); + reply:query(xmlns_mam):add_child(rsm.generate{first = (reverse and last or first), last = (reverse and first or last), count = #data}); end origin.send(reply); return true