From 168197a05f9a9d6d2f3caead7b6a5c41961b6c53 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 11 Jan 2022 17:51:26 +0100 Subject: plugins: Update for namespace bump in XEP-0353 v0.4.0 --- doc/doap.xml | 2 +- plugins/mod_carbons.lua | 2 +- plugins/mod_csi_simple.lua | 2 +- plugins/mod_mam/mod_mam.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/doap.xml b/doc/doap.xml index f673a059..458c7a37 100644 --- a/doc/doap.xml +++ b/doc/doap.xml @@ -708,7 +708,7 @@ - 0.3.1 + 0.4.0 0.11.6 complete triggers buffer flush in mod_csi_simple since 0.11.6; recognised by mod_carbons and mod_mam since 0.12 diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua index d8d6b3e3..5b0bdeb7 100644 --- a/plugins/mod_carbons.lua +++ b/plugins/mod_carbons.lua @@ -57,7 +57,7 @@ local function should_copy(stanza, c2s, user_bare) --> boolean, reason: string return true, "bounce"; end - if stanza:get_child(nil, "urn:xmpp:jingle-message:0") then + if stanza:get_child(nil, "urn:xmpp:jingle-message:0") or stanza:get_child(nil, "urn:xmpp:jingle-message:1") then -- XXX Experimental XEP return true, "jingle call"; end diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index 2420705a..569916b0 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -69,7 +69,7 @@ function is_important(stanza) --> boolean, reason: string if stanza:get_child("x", "jabber:x:conference") 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 + if stanza:get_child(nil, "urn:xmpp:jingle-message:0") or stanza:get_child(nil, "urn:xmpp:jingle-message:1") then -- XXX Experimental XEP return true, "jingle call"; end diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 92b49fcd..d4b2b060 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -370,7 +370,7 @@ 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 + if stanza:get_child(nil, "urn:xmpp:jingle-message:0") or stanza:get_child(nil, "urn:xmpp:jingle-message:1") then -- XXX Experimental XEP return true, "jingle call"; end -- cgit v1.2.3