changeset 3694:e45a3d04367b

mod_mam: Add flag to session when it performs a MAM query
author Matthew Wild <mwild1@gmail.com>
date Thu, 03 Oct 2019 16:39:53 +0100
parents 0fb12a4b6106
children 5a70dd2349a7
files mod_mam/mod_mam.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Thu Oct 03 12:13:44 2019 +0200
+++ b/mod_mam/mod_mam.lua	Thu Oct 03 16:39:53 2019 +0100
@@ -120,6 +120,8 @@
 	local query = stanza.tags[1];
 	local qid = query.attr.queryid;
 
+	origin.mam_requested = true;
+
 	schedule_cleanup(origin.username);
 
 	-- Search query parameters