# HG changeset patch # User Kim Alvefur # Date 1587424734 -7200 # Node ID 50f0a4d83731582a96b5be71adc497926511a412 # Parent 19ffb2ebf114df1db35b31ee26095ce7f23bdc87 mod_mam: Store XEP-0184 receipts and requests Happy now Ge0rG? diff -r 19ffb2ebf114 -r 50f0a4d83731 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Tue Apr 21 01:17:55 2020 +0200 +++ b/plugins/mod_mam/mod_mam.lua Tue Apr 21 01:18:54 2020 +0200 @@ -292,6 +292,11 @@ -- Since we can't know what an encrypted message contains, we assume it's important return true, "encrypted"; end + if stanza:get_child(nil, "urn:xmpp:receipts") then + -- If it's important enough to ask for a receipt then it's important enough to archive + -- and the same applies to the receipt + return true, "receipt"; + end if stanza:get_child("x", "jabber:x:conference") or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then return true, "invite";