changeset 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
parents 36a9170352b5
children 408f92149774
files mod_blocking/mod_blocking.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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