diff mod_mam/mod_mam.lua @ 2505:1398f3f76c0f

mod_mam: Add missing wrapping <query> element when returning the query form
author Kim Alvefur <zash@zash.se>
date Mon, 20 Feb 2017 00:44:27 +0100
parents 144b74caa5ef
children 5941aac79f06
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Fri Feb 17 17:54:56 2017 +0100
+++ b/mod_mam/mod_mam.lua	Mon Feb 20 00:44:27 2017 +0100
@@ -84,7 +84,7 @@
 -- Serve form
 module:hook("iq-get/self/"..xmlns_mam..":query", function(event)
 	local origin, stanza = event.origin, event.stanza;
-	origin.send(st.reply(stanza):add_child(query_form:form()));
+	origin.send(st.reply(stanza):query(xmlns_mam):add_child(query_form:form()));
 	return true;
 end);