# HG changeset patch # User Matthew Wild # Date 1570117193 -3600 # Node ID e45a3d04367b4fe28a970999747f6dcec9b4d8b9 # Parent 0fb12a4b6106439edbdf1e4bc143082797973e1a mod_mam: Add flag to session when it performs a MAM query diff -r 0fb12a4b6106 -r e45a3d04367b mod_mam/mod_mam.lua --- 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