Mercurial > prosody-modules
comparison mod_mam/mod_mam.lua @ 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 | 53917d98d411 |
| children | ba2e207e1fb7 |
comparison
equal
deleted
inserted
replaced
| 799:53917d98d411 | 800:966993356d2b |
|---|---|
| 223 module:log("debug", "Archive query %s completed", tostring(qid)); | 223 module:log("debug", "Archive query %s completed", tostring(qid)); |
| 224 | 224 |
| 225 local reply = st.reply(stanza); | 225 local reply = st.reply(stanza); |
| 226 if last then | 226 if last then |
| 227 -- This is a bit redundant, isn't it? | 227 -- This is a bit redundant, isn't it? |
| 228 reply:query(xmlns_mam):add_child(rsm.generate{last = last}); | 228 reply:query(xmlns_mam):add_child(rsm.generate{first = first, last = last, count = n}); |
| 229 end | 229 end |
| 230 origin.send(reply); | 230 origin.send(reply); |
| 231 return true | 231 return true |
| 232 end | 232 end |
| 233 end); | 233 end); |
