mod_mam: Report id of first item and number of items sent.
authorKim Alvefur <zash@zash.se>
Thu, 16 Aug 2012 22:31:08 +0200
changeset 800 966993356d2b
parent 799 53917d98d411
child 801 133ee88d19ae
mod_mam: Report id of first item and number of items sent.
mod_mam/mod_mam.lua
--- a/mod_mam/mod_mam.lua	Thu Aug 16 21:31:46 2012 +0200
+++ b/mod_mam/mod_mam.lua	Thu Aug 16 22:31:08 2012 +0200
@@ -225,7 +225,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{last = last});
+			reply:query(xmlns_mam):add_child(rsm.generate{first = first, last = last, count = n});
 		end
 		origin.send(reply);
 		return true