aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-09 00:57:42 +0200
committerKim Alvefur <zash@zash.se>2020-05-09 00:57:42 +0200
commit03b29a2a10fd8aa4712ad904b8b8999df250d9c3 (patch)
tree6e3a9a5a2a2aabf2f16bcf1c5d5672df166c4759
parent9bd6d1a47a26f62a663a0910d7ec82f402e8dbb2 (diff)
downloadprosody-03b29a2a10fd8aa4712ad904b8b8999df250d9c3.tar.gz
prosody-03b29a2a10fd8aa4712ad904b8b8999df250d9c3.zip
mod_mam: Archive XEP-0353: Jingle Message Initiation
-rw-r--r--doc/doap.xml2
-rw-r--r--plugins/mod_mam/mod_mam.lua4
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/doap.xml b/doc/doap.xml
index 0befc21c..df7b4a26 100644
--- a/doc/doap.xml
+++ b/doc/doap.xml
@@ -512,7 +512,7 @@
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0353.html"/>
<xmpp:version>0.3</xmpp:version>
<xmpp:since>0.11.6</xmpp:since>
- <xmpp:note>triggers buffer flush in mod_csi_simple since 0.11.6; recognised by mod_carbons since 0.12</xmpp:note>
+ <xmpp:note>triggers buffer flush in mod_csi_simple since 0.11.6; recognised by mod_carbons and mod_mam since 0.12</xmpp:note>
</xmpp:SupportedXep>
</implements>
<implements>
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 8695fe65..4fe714eb 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -315,6 +315,10 @@ local function should_store(stanza, c2s) --> boolean, reason: string
or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then
return true, "invite";
end
+ if stanza:get_child(nil, "urn:xmpp:jingle-message:0") then
+ -- XXX Experimental XEP stuck in Proposed for almost a year at the time of this comment
+ return true, "jingle call";
+ end
-- The IM-NG thing to do here would be to return `not st_to_full`
-- One day ...