From 4d9a571128c08173315407e243a2b1badb5d9f8c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 3 Oct 2019 16:38:15 +0100 Subject: mod_mam: Add flag to session when it performs a MAM query --- plugins/mod_mam/mod_mam.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 8900a2be..b500770f 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -90,6 +90,8 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) local query = stanza.tags[1]; local qid = query.attr.queryid; + origin.mam_requested = true; + get_prefs(origin.username, true); -- Search query parameters -- cgit v1.2.3