# HG changeset patch # User Kim Alvefur # Date 1487545753 -3600 # Node ID 34a6ba5dfe4ff7b92a38f6a2b2547b88b41fc2de # Parent d81882aa0e1e23f0202579658880effc8ab98ef7 mod_mam: Bring hints processing in line with 0.10 version diff -r d81882aa0e1e -r 34a6ba5dfe4f mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Mon Feb 20 00:07:59 2017 +0100 +++ b/mod_mam/mod_mam.lua Mon Feb 20 00:09:13 2017 +0100 @@ -268,12 +268,12 @@ return; end -- or if hints suggest we shouldn't - if stanza:get_child("no-permanent-storage", "urn:xmpp:hints") -- The XEP needs to decide on "store" or "storage" - or stanza:get_child("no-permanent-store", "urn:xmpp:hints") - or stanza:get_child("no-storage", "urn:xmpp:hints") - or stanza:get_child("no-store", "urn:xmpp:hints") then - log("debug", "Not archiving stanza: %s (hint)", stanza:top_tag()); - return; + if not stanza:get_child("store", "urn:xmpp:hints") then -- No hint telling us we should store + if stanza:get_child("no-permanent-store", "urn:xmpp:hints") + or stanza:get_child("no-store", "urn:xmpp:hints") then -- Hint telling us we should NOT store + log("debug", "Not archiving stanza: %s (hint)", stanza:top_tag()); + return; + end end -- Whos storage do we put it in?