Changeset

3997:0e72dd70afff

mod_muc_rai: Use correct stanza kind (message) for initial notification
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 Apr 2020 10:03:17 +0100
parents 3996:42682505e692
children 3998:67047ed63b15
files mod_muc_rai/mod_muc_rai.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_rai/mod_muc_rai.lua	Mon Apr 27 23:07:01 2020 +0200
+++ b/mod_muc_rai/mod_muc_rai.lua	Tue Apr 28 10:03:17 2020 +0100
@@ -193,7 +193,7 @@
 		end
 	end
 
-	local reply = st.reply(stanza)
+	local reply = st.message({ to = stanza.attr.from, from = module.host })
 		:tag("rai", { xmlns = xmlns_rai });
 	for room_jid in pairs(rooms_with_activity) do
 		reply:text_tag("activity", room_jid);