# HG changeset patch # User Kim Alvefur # Date 1478264389 -3600 # Node ID f3e1925f29c23b5bcf9a9ae788abf18716186e31 # Parent e5d5e5946af552afa3977b3535e99a9d4b5f691e mod_mam: Update to XEP-0313 v0.5.1 diff -r e5d5e5946af5 -r f3e1925f29c2 plugins/mod_mam/mamprefsxml.lib.lua --- a/plugins/mod_mam/mamprefsxml.lib.lua Mon Nov 28 07:35:49 2016 +0100 +++ b/plugins/mod_mam/mamprefsxml.lib.lua Fri Nov 04 13:59:49 2016 +0100 @@ -4,7 +4,7 @@ -- This file is MIT/X11 licensed. local st = require"util.stanza"; -local xmlns_mam = "urn:xmpp:mam:0"; +local xmlns_mam = "urn:xmpp:mam:1"; local default_attrs = { always = true, [true] = "always", diff -r e5d5e5946af5 -r f3e1925f29c2 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Mon Nov 28 07:35:49 2016 +0100 +++ b/plugins/mod_mam/mod_mam.lua Fri Nov 04 13:59:49 2016 +0100 @@ -3,7 +3,7 @@ -- -- This file is MIT/X11 licensed. -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"; @@ -142,7 +142,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 = {}; @@ -188,7 +187,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 }));