Changeset

12234:1c47162dd965

plugins: Update for namespace bump in XEP-0353 v0.4.0
author Kim Alvefur <zash@zash.se>
date Tue, 11 Jan 2022 17:51:26 +0100
parents 12233:e4530bdbf5f3
children 12235:c98527220564
files doc/doap.xml plugins/mod_carbons.lua plugins/mod_csi_simple.lua plugins/mod_mam/mod_mam.lua
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/doc/doap.xml	Tue Feb 01 14:46:42 2022 +0100
+++ b/doc/doap.xml	Tue Jan 11 17:51:26 2022 +0100
@@ -708,7 +708,7 @@
     <implements>
       <xmpp:SupportedXep>
         <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0353.html"/>
-        <xmpp:version>0.3.1</xmpp:version>
+        <xmpp:version>0.4.0</xmpp:version>
         <xmpp:since>0.11.6</xmpp:since>
         <xmpp:status>complete</xmpp:status>
         <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>
--- a/plugins/mod_carbons.lua	Tue Feb 01 14:46:42 2022 +0100
+++ b/plugins/mod_carbons.lua	Tue Jan 11 17:51:26 2022 +0100
@@ -57,7 +57,7 @@
 		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
--- a/plugins/mod_csi_simple.lua	Tue Feb 01 14:46:42 2022 +0100
+++ b/plugins/mod_csi_simple.lua	Tue Jan 11 17:51:26 2022 +0100
@@ -69,7 +69,7 @@
 		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
--- a/plugins/mod_mam/mod_mam.lua	Tue Feb 01 14:46:42 2022 +0100
+++ b/plugins/mod_mam/mod_mam.lua	Tue Jan 11 17:51:26 2022 +0100
@@ -370,7 +370,7 @@
 	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