Comparison

mod_mam/mod_mam.lua @ 705:c9d0ba39a33b

mod_mam: Move RSM pointer to last message into a MAM-namespaced child
author Kim Alvefur <zash@zash.se>
date Fri, 08 Jun 2012 20:11:39 +0200
parent 702:d94ee0848b27
child 706:5c2b96c4dde6
comparison
equal deleted inserted replaced
704:57206f8f7b09 705:c9d0ba39a33b
195 end 195 end
196 end 196 end
197 end 197 end
198 -- That's all folks! 198 -- That's all folks!
199 module:log("debug", "Archive query %s completed", tostring(qid)); 199 module:log("debug", "Archive query %s completed", tostring(qid));
200 origin.send(st.reply(stanza):add_child(rsm.generate{last = last})); 200
201 local reply = st.reply(stanza);
202 if last then
203 -- This is a bit redundant, isn't it?
204 reply:query(xmlns_mam):add_child(rsm.generate{last = last});
205 end
206 origin.send(reply);
201 return true 207 return true
202 end 208 end
203 end); 209 end);
204 210
205 local function has_in_roster(user, who) 211 local function has_in_roster(user, who)