Changeset

800:966993356d2b

mod_mam: Report id of first item and number of items sent.
author Kim Alvefur <zash@zash.se>
date Thu, 16 Aug 2012 22:31:08 +0200
parents 799:53917d98d411
children 801:133ee88d19ae
files mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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