From 031e272a9c77eb9b27e95e164558f917b21d74d6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 11 May 2020 21:14:02 +0200 Subject: mod_muc_mam: Remove spoofed archive IDs before archiving, fix #1552 The stanza-id added during archiving looks exactly like what should be stripped, so the stripping must happen before archiving. Getting priorities right is hard! Also no test coverage yet. --- plugins/mod_muc_mam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua index 88018f72..711bf163 100644 --- a/plugins/mod_muc_mam.lua +++ b/plugins/mod_muc_mam.lua @@ -324,7 +324,7 @@ module:hook("muc-broadcast-message", function (event) return tag; end); -end, 0); +end, 1); -- Handle messages local function save_to_history(self, stanza) -- cgit v1.2.3