# HG changeset patch # User Kim Alvefur # Date 1487545514 -3600 # Node ID b8a66805459e9bb2e52b8ec1e10d5cb717bde6ff # Parent 5941aac79f069a6f974e4530813c400d54f42a08 mod_mam_muc: Update to XEP-0313 0.5.1 diff -r 5941aac79f06 -r b8a66805459e mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Mon Feb 20 00:41:13 2017 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Mon Feb 20 00:05:14 2017 +0100 @@ -8,7 +8,7 @@ return; end -local xmlns_mam = "urn:xmpp:mam:0"; +local xmlns_mam = "urn:xmpp:mam:1"; local xmlns_delay = "urn:xmpp:delay"; local xmlns_forward = "urn:xmpp:forward:0"; local muc_form_enable_logging = "muc#roomconfig_enablelogging" @@ -219,7 +219,6 @@ end local total = tonumber(err); - origin.send(st.reply(stanza)) local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to }; local results = {}; @@ -265,7 +264,7 @@ -- That's all folks! module:log("debug", "Archive query %s completed", tostring(qid)); - origin.send(st.message(msg_reply_attr) + origin.send(st.reply(stanza) :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) :add_child(rsm.generate { first = first, last = last, count = total }));