# HG changeset patch # User Kim Alvefur # Date 1587574026 -7200 # Node ID 3967cf10de1b1263174cf33d1779b39f4adf3f96 # Parent 70b7c8f3d32da41fea45e50b39cf86ef196d3cee mod_mam: Respect no-store hint (thanks Ge0rG) no-store is used in an example in XEP-0313, so obviously this is the preferred hint diff -r 70b7c8f3d32d -r 3967cf10de1b plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Tue Apr 21 23:06:55 2020 +0200 +++ b/plugins/mod_mam/mod_mam.lua Wed Apr 22 18:47:06 2020 +0200 @@ -278,7 +278,8 @@ -- MUC messages always go to the full JID, usually archived by the MUC return false, "groupchat"; end - if stanza:get_child("no-permanent-store", "urn:xmpp:hints") then + if stanza:get_child("no-store", "urn:xmpp:hints") + or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then return false, "hint"; end if stanza:get_child("store", "urn:xmpp:hints") then