diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-04 13:59:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-04 13:59:49 +0100 |
commit | 58cc91cd454783208c1b3a4b73d9f54808b4aef6 (patch) | |
tree | a25ea9c0c058f23caa4f18b8f80a3939a621d0d8 /plugins | |
parent | 7f28edd090d2d1546ded116de193bab51bea268a (diff) | |
download | prosody-58cc91cd454783208c1b3a4b73d9f54808b4aef6.tar.gz prosody-58cc91cd454783208c1b3a4b73d9f54808b4aef6.zip |
mod_mam: Update to XEP-0313 v0.5.1
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_mam/mamprefsxml.lib.lua | 2 | ||||
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/mod_mam/mamprefsxml.lib.lua b/plugins/mod_mam/mamprefsxml.lib.lua index a0d46245..ec728e55 100644 --- a/plugins/mod_mam/mamprefsxml.lib.lua +++ b/plugins/mod_mam/mamprefsxml.lib.lua @@ -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 --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index bc348919..0caf4d07 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -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 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) 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 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) -- 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 })); |