aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2019-10-03 16:38:15 +0100
committerMatthew Wild <mwild1@gmail.com>2019-10-03 16:38:15 +0100
commit0ddc46653cacb51d6b3b935323d343fa44f9a58e (patch)
treefb2178ba63cd5cb14a01f381ec78afddd7218da6 /plugins
parentda04fec77a2f083a2b790e7ad2b8e69eb2f6849e (diff)
downloadprosody-0ddc46653cacb51d6b3b935323d343fa44f9a58e.tar.gz
prosody-0ddc46653cacb51d6b3b935323d343fa44f9a58e.zip
mod_mam: Add flag to session when it performs a MAM query
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_mam/mod_mam.lua2
1 files changed, 2 insertions, 0 deletions
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