mod_cloud_notify_encrypted: Advertise support for JMI push notifications
authorMatthew Wild <mwild1@gmail.com>
Tue, 23 Feb 2021 20:59:14 +0000
changeset 4471 6d595857164a
parent 4470 38bd4d557413
child 4472 5d8f9cc5c6fb
mod_cloud_notify_encrypted: Advertise support for JMI push notifications
mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua
--- a/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua	Tue Feb 23 16:37:06 2021 +0000
+++ b/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua	Tue Feb 23 20:59:14 2021 +0000
@@ -12,11 +12,13 @@
 local xmlns_push = "urn:xmpp:push:0";
 local xmlns_push_encrypt = "tigase:push:encrypt:0";
 local xmlns_push_encrypt_aes_128_gcm = "tigase:push:encrypt:aes-128-gcm";
+local xmlns_push_jingle = "tigase:push:jingle:0";
 
 -- https://xeps.tigase.net//docs/push-notifications/encrypt/#41-discovering-support
 local function account_disco_info(event)
 	event.reply:tag("feature", {var=xmlns_push_encrypt}):up();
 	event.reply:tag("feature", {var=xmlns_push_encrypt_aes_128_gcm}):up();
+	event.reply:tag("feature", {var=xmlns_push_jingle}):up();
 end
 module:hook("account-disco-info", account_disco_info);