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 | 0007aa04f11e9712247da1c15fbdc4f654a36534 (patch) | |
tree | fb2178ba63cd5cb14a01f381ec78afddd7218da6 /plugins/mod_mam/mod_mam.lua | |
parent | 23b4bd4c53e2f7bb0ccb85669cb7b3fd4d1fd6fc (diff) | |
download | prosody-0007aa04f11e9712247da1c15fbdc4f654a36534.tar.gz prosody-0007aa04f11e9712247da1c15fbdc4f654a36534.zip |
mod_mam: Add flag to session when it performs a MAM query
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-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 |