Changeset

9843:17060708d0eb 0.11

mod_muc_mam: Add comment about the tricks done with the 'with' field
author Kim Alvefur <zash@zash.se>
date Mon, 04 Mar 2019 12:58:20 +0100
parents 9842:6f39be2e0be5
children 9845:774b2ce62318 9856:4be2af104bf0
files plugins/mod_muc_mam.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua	Mon Mar 04 12:57:42 2019 +0100
+++ b/plugins/mod_muc_mam.lua	Mon Mar 04 12:58:20 2019 +0100
@@ -341,6 +341,7 @@
 	-- Policy check
 	if not archiving_enabled(self) then return end -- Don't log
 
+	-- Save the type in the 'with' field, allows storing presence without conflicts
 	local with = stanza.name
 	if stanza.attr.type then
 		with = with .. "<" .. stanza.attr.type