diff options
author | Matthew Wild <mwild1@gmail.com> | 2019-10-03 16:38:15 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2019-10-03 16:38:15 +0100 |
commit | 811c707639eba97d17d90e45606454fad75e5c32 (patch) | |
tree | fb2178ba63cd5cb14a01f381ec78afddd7218da6 /plugins | |
parent | dfa96d659ccfe41766f37767faef45fc5a8ae60e (diff) | |
download | prosody-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.lua | 2 |
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 |