plugins/mod_muc_mam.lua
changeset 10821 7c503938ce1d
parent 10804 62794e065e33
parent 10819 c432b7172fa3
child 10839 e402f808de50
--- a/plugins/mod_muc_mam.lua	Sat May 09 00:28:10 2020 +0200
+++ b/plugins/mod_muc_mam.lua	Sat May 09 00:48:22 2020 +0200
@@ -336,7 +336,7 @@
 	return true;
 end, 1);
 
-module:hook("muc-broadcast-messages", function (event)
+module:hook("muc-broadcast-message", function (event)
 	local room, stanza = event.room, event.stanza;
 
 	-- Filter out <stanza-id> that claim to be from us
@@ -446,6 +446,7 @@
 	if archiving_enabled(event.room) then
 		event.reply:tag("feature", {var=xmlns_mam}):up();
 	end
+	event.reply:tag("feature", {var=xmlns_st_id}):up();
 end);
 
 -- Cleanup