Changeset

4694:6c57b9e31586

mod_muc_markers: Don't skip archiving markable messages (thanks nicoco)
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Sep 2021 11:51:48 +0100
parents 4693:59f53cf66573
children 4695:4b3f054666e6
files mod_muc_markers/mod_muc_markers.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_markers/mod_muc_markers.lua	Thu Sep 16 22:57:52 2021 +0200
+++ b/mod_muc_markers/mod_muc_markers.lua	Sat Sep 18 11:51:48 2021 +0100
@@ -76,8 +76,8 @@
 module:hook("muc-message-is-historic", function (event)
 	local marker = event.stanza:get_child(nil, xmlns_markers);
 
-	-- Prevent stanza from reaching the archive (it's just noise)
-	if marker then
+	if marker and marker.name ~= "markable" then
+		-- Prevent stanza from reaching the archive (it's just noise)
 		return false;
 	end
 end);