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
commit811c707639eba97d17d90e45606454fad75e5c32 (patch)
treefb2178ba63cd5cb14a01f381ec78afddd7218da6 /plugins
parentdfa96d659ccfe41766f37767faef45fc5a8ae60e (diff)
downloadprosody-811c707639eba97d17d90e45606454fad75e5c32.tar.gz
prosody-811c707639eba97d17d90e45606454fad75e5c32.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