mod_muc_mam: Remove spoofed archive IDs before archiving, fix #1552 0.11
authorKim Alvefur <zash@zash.se>
Mon, 11 May 2020 21:14:02 +0200
branch0.11
changeset 10838 c6e852984d48
parent 10820 b4c2c7fae7c0
child 10839 e402f808de50
child 10847 8fcd46ee9bf5
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
--- a/plugins/mod_muc_mam.lua	Fri May 08 23:47:48 2020 +0200
+++ b/plugins/mod_muc_mam.lua	Mon May 11 21:14:02 2020 +0200
@@ -324,7 +324,7 @@
 		return tag;
 	end);
 
-end, 0);
+end, 1);
 
 -- Handle messages
 local function save_to_history(self, stanza)