Diff

mod_blocking/mod_blocking.lua @ 3318:1856c3aae92d

mod_blocking: Update to set id attribute on iq stanza
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Sep 2018 16:29:06 +0100
parent 1796:1e9a06caa866
line wrap: on
line diff
--- a/mod_blocking/mod_blocking.lua	Thu Sep 13 16:28:10 2018 +0100
+++ b/mod_blocking/mod_blocking.lua	Thu Sep 13 16:29:06 2018 +0100
@@ -113,7 +113,7 @@
 	end
 
 	for resource, session in pairs(prosody.bare_sessions[bare_jid].sessions) do
-		local iq_push_stanza = st.iq({ type = "set", to = bare_jid.."/"..resource });
+		local iq_push_stanza = st.iq({ type = "set", to = bare_jid.."/"..resource, id = "blocking-push" });
 		iq_push_stanza:add_child(stanza_content);
 		session.send(iq_push_stanza);
 	end