changeset 3902:341850e8866f

mod_muc_moderation: Broadcast retraction via method that saves it Otherwise the retraction is not saved to history, so that those who join after it was sent are unaware of the retraction
author Kim Alvefur <zash@zash.se>
date Sat, 22 Feb 2020 21:41:31 +0100
parents a7ba6929d425
children cfeb93b80621
files mod_muc_moderation/mod_muc_moderation.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_moderation/mod_muc_moderation.lua	Sat Feb 22 21:40:19 2020 +0100
+++ b/mod_muc_moderation/mod_muc_moderation.lua	Sat Feb 22 21:41:31 2020 +0100
@@ -109,7 +109,7 @@
 
 	-- Done, tell people about it
 	module:log("info", "Message with id '%s' in room %s moderated by %s, reason: %s", stanza_id, room_jid, actor, reason);
-	room:broadcast(announcement);
+	room:broadcast_message(announcement);
 
 	origin.send(st.reply(stanza));
 	return true;