mod_mam: Make note of Experimental (or Deferred) XEPs

Since these XEPs are subject to change we may need come back and double
check these in the future.
This commit is contained in:
Kim Alvefur 2020-04-22 18:53:50 +02:00
parent 92150bd359
commit 966c3c5604

View file

@ -283,6 +283,7 @@ local function should_store(stanza) --> boolean, reason: string
end
if stanza:get_child("no-store", "urn:xmpp:hints")
or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then
-- XXX Experimental XEP
return false, "hint";
end
if stanza:get_child("store", "urn:xmpp:hints") then
@ -297,6 +298,7 @@ local function should_store(stanza) --> boolean, reason: string
end
if stanza:get_child("encryption", "urn:xmpp:eme:0") then
-- Since we can't know what an encrypted message contains, we assume it's important
-- XXX Experimental XEP
return true, "encrypted";
end
if stanza:get_child(nil, "urn:xmpp:receipts") then
@ -305,6 +307,7 @@ local function should_store(stanza) --> boolean, reason: string
return true, "receipt";
end
if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then
-- XXX Experimental XEP
return true, "marker";
end
if stanza:get_child("x", "jabber:x:conference")